Struct msql_srv::ColumnFlags
[−]
[src]
pub struct ColumnFlags { /* fields omitted */ }
MySql column flags
Methods
impl ColumnFlags
[src]
const NOT_NULL_FLAG: ColumnFlags
NOT_NULL_FLAG: ColumnFlags = ColumnFlags{bits: 1u16,}
const PRI_KEY_FLAG: ColumnFlags
PRI_KEY_FLAG: ColumnFlags = ColumnFlags{bits: 2u16,}
const UNIQUE_KEY_FLAG: ColumnFlags
UNIQUE_KEY_FLAG: ColumnFlags = ColumnFlags{bits: 4u16,}
const MULTIPLE_KEY_FLAG: ColumnFlags
MULTIPLE_KEY_FLAG: ColumnFlags = ColumnFlags{bits: 8u16,}
const BLOB_FLAG: ColumnFlags
BLOB_FLAG: ColumnFlags = ColumnFlags{bits: 16u16,}
const UNSIGNED_FLAG: ColumnFlags
UNSIGNED_FLAG: ColumnFlags = ColumnFlags{bits: 32u16,}
const ZEROFILL_FLAG: ColumnFlags
ZEROFILL_FLAG: ColumnFlags = ColumnFlags{bits: 64u16,}
const BINARY_FLAG: ColumnFlags
BINARY_FLAG: ColumnFlags = ColumnFlags{bits: 128u16,}
const ENUM_FLAG: ColumnFlags
ENUM_FLAG: ColumnFlags = ColumnFlags{bits: 256u16,}
const AUTO_INCREMENT_FLAG: ColumnFlags
AUTO_INCREMENT_FLAG: ColumnFlags = ColumnFlags{bits: 512u16,}
const TIMESTAMP_FLAG: ColumnFlags
TIMESTAMP_FLAG: ColumnFlags = ColumnFlags{bits: 1024u16,}
const SET_FLAG: ColumnFlags
SET_FLAG: ColumnFlags = ColumnFlags{bits: 2048u16,}
const NO_DEFAULT_VALUE_FLAG: ColumnFlags
NO_DEFAULT_VALUE_FLAG: ColumnFlags = ColumnFlags{bits: 4096u16,}
const ON_UPDATE_NOW_FLAG: ColumnFlags
ON_UPDATE_NOW_FLAG: ColumnFlags = ColumnFlags{bits: 8192u16,}
const PART_KEY_FLAG: ColumnFlags
PART_KEY_FLAG: ColumnFlags = ColumnFlags{bits: 16384u16,}
const NUM_FLAG: ColumnFlags
NUM_FLAG: ColumnFlags = ColumnFlags{bits: 32768u16,}
fn empty() -> ColumnFlags
[src]
Returns an empty set of flags.
fn all() -> ColumnFlags
[src]
Returns the set containing all flags.
fn bits(&self) -> u16
[src]
Returns the raw value of the flags currently stored.
fn from_bits(bits: u16) -> Option<ColumnFlags>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u16) -> ColumnFlags
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
fn intersects(&self, other: ColumnFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: ColumnFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: ColumnFlags)
[src]
Inserts the specified flags in-place.
fn remove(&mut self, other: ColumnFlags)
[src]
Removes the specified flags in-place.
fn toggle(&mut self, other: ColumnFlags)
[src]
Toggles the specified flags in-place.
fn set(&mut self, other: ColumnFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Ord for ColumnFlags
[src]
fn cmp(&self, __arg_0: &ColumnFlags) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Copy for ColumnFlags
[src]
impl Hash for ColumnFlags
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Not for ColumnFlags
[src]
type Output = ColumnFlags
fn not(self) -> ColumnFlags
[src]
Returns the complement of this set of flags.
impl Clone for ColumnFlags
[src]
fn clone(&self) -> ColumnFlags
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl BitXor<ColumnFlags> for ColumnFlags
[src]
type Output = ColumnFlags
fn bitxor(self, other: ColumnFlags) -> ColumnFlags
[src]
Returns the left flags, but with all the right flags toggled.
impl BitOr<ColumnFlags> for ColumnFlags
[src]
type Output = ColumnFlags
fn bitor(self, other: ColumnFlags) -> ColumnFlags
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<ColumnFlags> for ColumnFlags
[src]
fn bitor_assign(&mut self, other: ColumnFlags)
[src]
Adds the set of flags.
impl BitAndAssign<ColumnFlags> for ColumnFlags
[src]
fn bitand_assign(&mut self, other: ColumnFlags)
[src]
Disables all flags disabled in the set.
impl Octal for ColumnFlags
[src]
impl PartialEq<ColumnFlags> for ColumnFlags
[src]
fn eq(&self, __arg_0: &ColumnFlags) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ColumnFlags) -> bool
[src]
This method tests for !=
.
impl Debug for ColumnFlags
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl Extend<ColumnFlags> for ColumnFlags
[src]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = ColumnFlags>,
[src]
T: IntoIterator<Item = ColumnFlags>,
impl SubAssign<ColumnFlags> for ColumnFlags
[src]
fn sub_assign(&mut self, other: ColumnFlags)
[src]
Disables all flags enabled in the set.
impl BitAnd<ColumnFlags> for ColumnFlags
[src]
type Output = ColumnFlags
fn bitand(self, other: ColumnFlags) -> ColumnFlags
[src]
Returns the intersection between the two sets of flags.
impl BitXorAssign<ColumnFlags> for ColumnFlags
[src]
fn bitxor_assign(&mut self, other: ColumnFlags)
[src]
Toggles the set of flags.
impl UpperHex for ColumnFlags
[src]
impl Eq for ColumnFlags
[src]
impl Binary for ColumnFlags
[src]
impl FromIterator<ColumnFlags> for ColumnFlags
[src]
fn from_iter<T>(iterator: T) -> ColumnFlags where
T: IntoIterator<Item = ColumnFlags>,
[src]
T: IntoIterator<Item = ColumnFlags>,
impl LowerHex for ColumnFlags
[src]
impl Sub<ColumnFlags> for ColumnFlags
[src]
type Output = ColumnFlags
fn sub(self, other: ColumnFlags) -> ColumnFlags
[src]
Returns the set difference of the two sets of flags.
impl PartialOrd<ColumnFlags> for ColumnFlags
[src]
fn partial_cmp(&self, __arg_0: &ColumnFlags) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &ColumnFlags) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &ColumnFlags) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &ColumnFlags) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &ColumnFlags) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more