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