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