Struct mysql::consts::ColumnFlags [] [src]

pub struct ColumnFlags {
    // some fields omitted
}

Methods

impl ColumnFlags

fn empty() -> ColumnFlags

Returns an empty set of flags.

fn all() -> ColumnFlags

Returns the set containing all flags.

fn bits(&self) -> u16

Returns the raw value of the flags currently stored.

fn from_bits(bits: u16) -> Option<ColumnFlags>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

fn from_bits_truncate(bits: u16) -> ColumnFlags

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Returns true if all flags are currently set.

fn intersects(&self, other: ColumnFlags) -> bool

Returns true if there are flags common to both self and other.

fn contains(&self, other: ColumnFlags) -> bool

Returns true all of the flags in other are contained within self.

fn insert(&mut self, other: ColumnFlags)

Inserts the specified flags in-place.

fn remove(&mut self, other: ColumnFlags)

Removes the specified flags in-place.

fn toggle(&mut self, other: ColumnFlags)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for ColumnFlags

fn fmt(&self, f: &mut Formatter) -> Result

impl BitOr for ColumnFlags

type Output = ColumnFlags

fn bitor(self, other: ColumnFlags) -> ColumnFlags

impl BitXor for ColumnFlags

type Output = ColumnFlags

fn bitxor(self, other: ColumnFlags) -> ColumnFlags

impl BitAnd for ColumnFlags

type Output = ColumnFlags

fn bitand(self, other: ColumnFlags) -> ColumnFlags

impl Sub for ColumnFlags

type Output = ColumnFlags

fn sub(self, other: ColumnFlags) -> ColumnFlags

impl Not for ColumnFlags

type Output = ColumnFlags

fn not(self) -> ColumnFlags

impl FromIterator<ColumnFlags> for ColumnFlags

fn from_iter<T: IntoIterator<Item=ColumnFlags>>(iterator: T) -> ColumnFlags

Derived Implementations

impl Hash for ColumnFlags

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for ColumnFlags

fn cmp(&self, __arg_0: &ColumnFlags) -> Ordering

impl PartialOrd for ColumnFlags

fn partial_cmp(&self, __arg_0: &ColumnFlags) -> Option<Ordering>

fn lt(&self, __arg_0: &ColumnFlags) -> bool

fn le(&self, __arg_0: &ColumnFlags) -> bool

fn gt(&self, __arg_0: &ColumnFlags) -> bool

fn ge(&self, __arg_0: &ColumnFlags) -> bool

impl Clone for ColumnFlags

fn clone(&self) -> ColumnFlags

fn clone_from(&mut self, source: &Self)

impl Eq for ColumnFlags

impl PartialEq for ColumnFlags

fn eq(&self, __arg_0: &ColumnFlags) -> bool

fn ne(&self, __arg_0: &ColumnFlags) -> bool

impl Copy for ColumnFlags