Struct redis_module::raw::KeyMode [−][src]
pub struct KeyMode { /* fields omitted */ }
Implementations
impl KeyMode
[src]
impl KeyMode
[src]pub const READ: KeyMode
[src]
pub const WRITE: KeyMode
[src]
pub const fn empty() -> KeyMode
[src]
Returns an empty set of flags
pub const fn all() -> KeyMode
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> c_int
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: c_int) -> Option<KeyMode>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: c_int) -> KeyMode
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: c_int) -> KeyMode
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: KeyMode) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: KeyMode) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: KeyMode)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: KeyMode)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: KeyMode)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: KeyMode, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl BitAndAssign<KeyMode> for KeyMode
[src]
impl BitAndAssign<KeyMode> for KeyMode
[src]fn bitand_assign(&mut self, other: KeyMode)
[src]
Disables all flags disabled in the set.
impl BitOrAssign<KeyMode> for KeyMode
[src]
impl BitOrAssign<KeyMode> for KeyMode
[src]fn bitor_assign(&mut self, other: KeyMode)
[src]
Adds the set of flags.
impl BitXorAssign<KeyMode> for KeyMode
[src]
impl BitXorAssign<KeyMode> for KeyMode
[src]fn bitxor_assign(&mut self, other: KeyMode)
[src]
Toggles the set of flags.
impl Extend<KeyMode> for KeyMode
[src]
impl Extend<KeyMode> for KeyMode
[src]fn extend<T: IntoIterator<Item = KeyMode>>(&mut self, iterator: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<KeyMode> for KeyMode
[src]
impl FromIterator<KeyMode> for KeyMode
[src]fn from_iter<T: IntoIterator<Item = KeyMode>>(iterator: T) -> KeyMode
[src]
impl PartialOrd<KeyMode> for KeyMode
[src]
impl PartialOrd<KeyMode> for KeyMode
[src]impl StructuralEq for KeyMode
[src]
impl StructuralEq for KeyMode
[src]impl StructuralPartialEq for KeyMode
[src]
impl StructuralPartialEq for KeyMode
[src]Auto Trait Implementations
impl RefUnwindSafe for KeyMode
impl RefUnwindSafe for KeyMode
impl UnwindSafe for KeyMode
impl UnwindSafe for KeyMode