Struct rkv::DatabaseFlags
[−]
[src]
pub struct DatabaseFlags { /* fields omitted */ }
Database Options
Methods
impl DatabaseFlags
[src]
fn empty() -> DatabaseFlags
[src]
Returns an empty set of flags.
fn all() -> DatabaseFlags
[src]
Returns the set containing all flags.
fn bits(&self) -> u32
[src]
Returns the raw value of the flags currently stored.
fn from_bits(bits: u32) -> Option<DatabaseFlags>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u32) -> DatabaseFlags
[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: DatabaseFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: DatabaseFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: DatabaseFlags)
[src]
Inserts the specified flags in-place.
fn remove(&mut self, other: DatabaseFlags)
[src]
Removes the specified flags in-place.
fn toggle(&mut self, other: DatabaseFlags)
[src]
Toggles the specified flags in-place.
fn set(&mut self, other: DatabaseFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Ord for DatabaseFlags
[src]
fn cmp(&self, __arg_0: &DatabaseFlags) -> Ordering
[src]
impl Copy for DatabaseFlags
[src]
impl Hash for DatabaseFlags
[src]
impl Not for DatabaseFlags
[src]
type Output = DatabaseFlags
fn not(self) -> DatabaseFlags
[src]
Returns the complement of this set of flags.
impl Clone for DatabaseFlags
[src]
fn clone(&self) -> DatabaseFlags
[src]
impl BitXor<DatabaseFlags> for DatabaseFlags
[src]
type Output = DatabaseFlags
fn bitxor(self, other: DatabaseFlags) -> DatabaseFlags
[src]
Returns the left flags, but with all the right flags toggled.
impl BitOr<DatabaseFlags> for DatabaseFlags
[src]
type Output = DatabaseFlags
fn bitor(self, other: DatabaseFlags) -> DatabaseFlags
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<DatabaseFlags> for DatabaseFlags
[src]
fn bitor_assign(&mut self, other: DatabaseFlags)
[src]
Adds the set of flags.
impl Octal for DatabaseFlags
[src]
impl BitAndAssign<DatabaseFlags> for DatabaseFlags
[src]
fn bitand_assign(&mut self, other: DatabaseFlags)
[src]
Disables all flags disabled in the set.
impl PartialEq<DatabaseFlags> for DatabaseFlags
[src]
fn eq(&self, __arg_0: &DatabaseFlags) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DatabaseFlags) -> bool
[src]
This method tests for !=
.
impl Debug for DatabaseFlags
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl Extend<DatabaseFlags> for DatabaseFlags
[src]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = DatabaseFlags>,
[src]
T: IntoIterator<Item = DatabaseFlags>,
impl SubAssign<DatabaseFlags> for DatabaseFlags
[src]
fn sub_assign(&mut self, other: DatabaseFlags)
[src]
Disables all flags enabled in the set.
impl BitAnd<DatabaseFlags> for DatabaseFlags
[src]
type Output = DatabaseFlags
fn bitand(self, other: DatabaseFlags) -> DatabaseFlags
[src]
Returns the intersection between the two sets of flags.
impl BitXorAssign<DatabaseFlags> for DatabaseFlags
[src]
fn bitxor_assign(&mut self, other: DatabaseFlags)
[src]
Toggles the set of flags.
impl UpperHex for DatabaseFlags
[src]
impl Eq for DatabaseFlags
[src]
impl Binary for DatabaseFlags
[src]
impl FromIterator<DatabaseFlags> for DatabaseFlags
[src]
fn from_iter<T>(iterator: T) -> DatabaseFlags where
T: IntoIterator<Item = DatabaseFlags>,
[src]
T: IntoIterator<Item = DatabaseFlags>,
impl LowerHex for DatabaseFlags
[src]
impl Sub<DatabaseFlags> for DatabaseFlags
[src]
type Output = DatabaseFlags
fn sub(self, other: DatabaseFlags) -> DatabaseFlags
[src]
Returns the set difference of the two sets of flags.