Struct bmemcached::constants::StoredType [−]
pub struct StoredType { /* fields omitted */ }
Methods
impl StoredType
impl StoredType
pub const MTYPE_STRING: StoredType
MTYPE_STRING: StoredType = StoredType{bits: 1 << 0,}
pub const MTYPE_U8: StoredType
MTYPE_U8: StoredType = StoredType{bits: 1 << 1,}
pub const MTYPE_U16: StoredType
MTYPE_U16: StoredType = StoredType{bits: 1 << 2,}
pub const MTYPE_U32: StoredType
MTYPE_U32: StoredType = StoredType{bits: 1 << 3,}
pub const MTYPE_U64: StoredType
MTYPE_U64: StoredType = StoredType{bits: 1 << 4,}
pub const MTYPE_VECTOR: StoredType
MTYPE_VECTOR: StoredType = StoredType{bits: 1 << 5,}
pub const MTYPE_COMPRESSED: StoredType
MTYPE_COMPRESSED: StoredType = StoredType{bits: 1 << 6,}
pub const MTYPE_USER_DEFINED_1: StoredType
MTYPE_USER_DEFINED_1: StoredType = StoredType{bits: 1 << 10,}
pub const MTYPE_USER_DEFINED_2: StoredType
MTYPE_USER_DEFINED_2: StoredType = StoredType{bits: 1 << 11,}
pub const MTYPE_USER_DEFINED_3: StoredType
MTYPE_USER_DEFINED_3: StoredType = StoredType{bits: 1 << 13,}
pub const MTYPE_USER_DEFINED_4: StoredType
MTYPE_USER_DEFINED_4: StoredType = StoredType{bits: 1 << 14,}
pub const MTYPE_USER_DEFINED_5: StoredType
MTYPE_USER_DEFINED_5: StoredType = StoredType{bits: 1 << 15,}
pub const MTYPE_USER_DEFINED_6: StoredType
MTYPE_USER_DEFINED_6: StoredType = StoredType{bits: 1 << 16,}
pub const MTYPE_USER_DEFINED_7: StoredType
MTYPE_USER_DEFINED_7: StoredType = StoredType{bits: 1 << 17,}
pub const MTYPE_USER_DEFINED_8: StoredType
MTYPE_USER_DEFINED_8: StoredType = StoredType{bits: 1 << 18,}
pub const MTYPE_USER_DEFINED_9: StoredType
MTYPE_USER_DEFINED_9: StoredType = StoredType{bits: 1 << 19,}
pub const MTYPE_USER_DEFINED_10: StoredType
MTYPE_USER_DEFINED_10: StoredType = StoredType{bits: 1 << 20,}
pub const MTYPE_USER_DEFINED_11: StoredType
MTYPE_USER_DEFINED_11: StoredType = StoredType{bits: 1 << 21,}
pub const MTYPE_USER_DEFINED_12: StoredType
MTYPE_USER_DEFINED_12: StoredType = StoredType{bits: 1 << 22,}
pub const MTYPE_USER_DEFINED_13: StoredType
MTYPE_USER_DEFINED_13: StoredType = StoredType{bits: 1 << 23,}
pub const MTYPE_USER_DEFINED_14: StoredType
MTYPE_USER_DEFINED_14: StoredType = StoredType{bits: 1 << 24,}
pub const MTYPE_USER_DEFINED_15: StoredType
MTYPE_USER_DEFINED_15: StoredType = StoredType{bits: 1 << 25,}
pub const MTYPE_USER_DEFINED_16: StoredType
MTYPE_USER_DEFINED_16: StoredType = StoredType{bits: 1 << 26,}
pub const MTYPE_USER_DEFINED_17: StoredType
MTYPE_USER_DEFINED_17: StoredType = StoredType{bits: 1 << 27,}
pub const MTYPE_USER_DEFINED_18: StoredType
MTYPE_USER_DEFINED_18: StoredType = StoredType{bits: 1 << 28,}
pub const MTYPE_USER_DEFINED_19: StoredType
MTYPE_USER_DEFINED_19: StoredType = StoredType{bits: 1 << 29,}
pub const MTYPE_USER_DEFINED_20: StoredType
MTYPE_USER_DEFINED_20: StoredType = StoredType{bits: 1 << 30,}
pub fn empty() -> StoredType
pub fn empty() -> StoredType
Returns an empty set of flags.
pub fn all() -> StoredType
pub fn all() -> StoredType
Returns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<StoredType>
pub fn from_bits(bits: u32) -> Option<StoredType>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> StoredType
pub fn from_bits_truncate(bits: u32) -> StoredType
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: StoredType) -> bool
pub fn intersects(&self, other: StoredType) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: StoredType) -> bool
pub fn contains(&self, other: StoredType) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: StoredType)
pub fn insert(&mut self, other: StoredType)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: StoredType)
pub fn remove(&mut self, other: StoredType)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: StoredType)
pub fn toggle(&mut self, other: StoredType)
Toggles the specified flags in-place.
pub fn set(&mut self, other: StoredType, value: bool)
pub fn set(&mut self, other: StoredType, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for StoredType
impl Copy for StoredType
impl PartialEq for StoredType
impl PartialEq for StoredType
fn eq(&self, other: &StoredType) -> bool
fn eq(&self, other: &StoredType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &StoredType) -> bool
fn ne(&self, other: &StoredType) -> bool
This method tests for !=
.
impl Eq for StoredType
impl Eq for StoredType
impl Clone for StoredType
impl Clone for StoredType
fn clone(&self) -> StoredType
fn clone(&self) -> StoredType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd for StoredType
impl PartialOrd for StoredType
fn partial_cmp(&self, other: &StoredType) -> Option<Ordering>
fn partial_cmp(&self, other: &StoredType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &StoredType) -> bool
fn lt(&self, other: &StoredType) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &StoredType) -> bool
fn le(&self, other: &StoredType) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &StoredType) -> bool
fn gt(&self, other: &StoredType) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &StoredType) -> bool
fn ge(&self, other: &StoredType) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for StoredType
impl Ord for StoredType
fn cmp(&self, other: &StoredType) -> Ordering
fn cmp(&self, other: &StoredType) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for StoredType
impl Hash for StoredType
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for StoredType
impl Debug for StoredType
impl Binary for StoredType
impl Binary for StoredType
impl Octal for StoredType
impl Octal for StoredType
impl LowerHex for StoredType
impl LowerHex for StoredType
impl UpperHex for StoredType
impl UpperHex for StoredType
impl BitOr for StoredType
impl BitOr for StoredType
type Output = StoredType
The resulting type after applying the |
operator.
fn bitor(self, other: StoredType) -> StoredType
fn bitor(self, other: StoredType) -> StoredType
Returns the union of the two sets of flags.
impl BitOrAssign for StoredType
impl BitOrAssign for StoredType
fn bitor_assign(&mut self, other: StoredType)
fn bitor_assign(&mut self, other: StoredType)
Adds the set of flags.
impl BitXor for StoredType
impl BitXor for StoredType
type Output = StoredType
The resulting type after applying the ^
operator.
fn bitxor(self, other: StoredType) -> StoredType
fn bitxor(self, other: StoredType) -> StoredType
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for StoredType
impl BitXorAssign for StoredType
fn bitxor_assign(&mut self, other: StoredType)
fn bitxor_assign(&mut self, other: StoredType)
Toggles the set of flags.
impl BitAnd for StoredType
impl BitAnd for StoredType
type Output = StoredType
The resulting type after applying the &
operator.
fn bitand(self, other: StoredType) -> StoredType
fn bitand(self, other: StoredType) -> StoredType
Returns the intersection between the two sets of flags.
impl BitAndAssign for StoredType
impl BitAndAssign for StoredType
fn bitand_assign(&mut self, other: StoredType)
fn bitand_assign(&mut self, other: StoredType)
Disables all flags disabled in the set.
impl Sub for StoredType
impl Sub for StoredType
type Output = StoredType
The resulting type after applying the -
operator.
fn sub(self, other: StoredType) -> StoredType
fn sub(self, other: StoredType) -> StoredType
Returns the set difference of the two sets of flags.
impl SubAssign for StoredType
impl SubAssign for StoredType
fn sub_assign(&mut self, other: StoredType)
fn sub_assign(&mut self, other: StoredType)
Disables all flags enabled in the set.
impl Not for StoredType
impl Not for StoredType
type Output = StoredType
The resulting type after applying the !
operator.
fn not(self) -> StoredType
fn not(self) -> StoredType
Returns the complement of this set of flags.
impl Extend<StoredType> for StoredType
impl Extend<StoredType> for StoredType
fn extend<T: IntoIterator<Item = StoredType>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = StoredType>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<StoredType> for StoredType
impl FromIterator<StoredType> for StoredType
fn from_iter<T: IntoIterator<Item = StoredType>>(iterator: T) -> StoredType
fn from_iter<T: IntoIterator<Item = StoredType>>(iterator: T) -> StoredType
Creates a value from an iterator. Read more
Auto Trait Implementations
impl Send for StoredType
impl Send for StoredType
impl Sync for StoredType
impl Sync for StoredType