Struct ord_lmdb_rs::core::EnvCreateFlags
source · [−]pub struct EnvCreateFlags { /* private fields */ }
Expand description
A set of all environment flags
Implementations
sourceimpl EnvCreateFlags
impl EnvCreateFlags
sourcepub fn empty() -> EnvCreateFlags
pub fn empty() -> EnvCreateFlags
Returns an empty set of flags.
sourcepub fn all() -> EnvCreateFlags
pub fn all() -> EnvCreateFlags
Returns the set containing all flags.
sourcepub fn from_bits(bits: c_uint) -> Option<EnvCreateFlags>
pub fn from_bits(bits: c_uint) -> Option<EnvCreateFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub fn from_bits_truncate(bits: c_uint) -> EnvCreateFlags
pub fn from_bits_truncate(bits: c_uint) -> EnvCreateFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub fn intersects(&self, other: EnvCreateFlags) -> bool
pub fn intersects(&self, other: EnvCreateFlags) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub fn contains(&self, other: EnvCreateFlags) -> bool
pub fn contains(&self, other: EnvCreateFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: EnvCreateFlags)
pub fn insert(&mut self, other: EnvCreateFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: EnvCreateFlags)
pub fn remove(&mut self, other: EnvCreateFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: EnvCreateFlags)
pub fn toggle(&mut self, other: EnvCreateFlags)
Toggles the specified flags in-place.
Trait Implementations
sourceimpl BitAnd<EnvCreateFlags> for EnvCreateFlags
impl BitAnd<EnvCreateFlags> for EnvCreateFlags
sourcefn bitand(self, other: EnvCreateFlags) -> EnvCreateFlags
fn bitand(self, other: EnvCreateFlags) -> EnvCreateFlags
Returns the intersection between the two sets of flags.
type Output = EnvCreateFlags
type Output = EnvCreateFlags
The resulting type after applying the &
operator.
sourceimpl BitAndAssign<EnvCreateFlags> for EnvCreateFlags
impl BitAndAssign<EnvCreateFlags> for EnvCreateFlags
sourcefn bitand_assign(&mut self, other: EnvCreateFlags)
fn bitand_assign(&mut self, other: EnvCreateFlags)
Disables all flags disabled in the set.
sourceimpl BitOr<EnvCreateFlags> for EnvCreateFlags
impl BitOr<EnvCreateFlags> for EnvCreateFlags
sourcefn bitor(self, other: EnvCreateFlags) -> EnvCreateFlags
fn bitor(self, other: EnvCreateFlags) -> EnvCreateFlags
Returns the union of the two sets of flags.
type Output = EnvCreateFlags
type Output = EnvCreateFlags
The resulting type after applying the |
operator.
sourceimpl BitOrAssign<EnvCreateFlags> for EnvCreateFlags
impl BitOrAssign<EnvCreateFlags> for EnvCreateFlags
sourcefn bitor_assign(&mut self, other: EnvCreateFlags)
fn bitor_assign(&mut self, other: EnvCreateFlags)
Adds the set of flags.
sourceimpl BitXor<EnvCreateFlags> for EnvCreateFlags
impl BitXor<EnvCreateFlags> for EnvCreateFlags
sourcefn bitxor(self, other: EnvCreateFlags) -> EnvCreateFlags
fn bitxor(self, other: EnvCreateFlags) -> EnvCreateFlags
Returns the left flags, but with all the right flags toggled.
type Output = EnvCreateFlags
type Output = EnvCreateFlags
The resulting type after applying the ^
operator.
sourceimpl BitXorAssign<EnvCreateFlags> for EnvCreateFlags
impl BitXorAssign<EnvCreateFlags> for EnvCreateFlags
sourcefn bitxor_assign(&mut self, other: EnvCreateFlags)
fn bitxor_assign(&mut self, other: EnvCreateFlags)
Toggles the set of flags.
sourceimpl Clone for EnvCreateFlags
impl Clone for EnvCreateFlags
sourcefn clone(&self) -> EnvCreateFlags
fn clone(&self) -> EnvCreateFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnvCreateFlags
impl Debug for EnvCreateFlags
sourceimpl Extend<EnvCreateFlags> for EnvCreateFlags
impl Extend<EnvCreateFlags> for EnvCreateFlags
sourcefn extend<T: IntoIterator<Item = EnvCreateFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = EnvCreateFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl FromIterator<EnvCreateFlags> for EnvCreateFlags
impl FromIterator<EnvCreateFlags> for EnvCreateFlags
sourcefn from_iter<T: IntoIterator<Item = EnvCreateFlags>>(
iterator: T
) -> EnvCreateFlags
fn from_iter<T: IntoIterator<Item = EnvCreateFlags>>(
iterator: T
) -> EnvCreateFlags
Creates a value from an iterator. Read more
sourceimpl Hash for EnvCreateFlags
impl Hash for EnvCreateFlags
sourceimpl Not for EnvCreateFlags
impl Not for EnvCreateFlags
sourcefn not(self) -> EnvCreateFlags
fn not(self) -> EnvCreateFlags
Returns the complement of this set of flags.
type Output = EnvCreateFlags
type Output = EnvCreateFlags
The resulting type after applying the !
operator.
sourceimpl Ord for EnvCreateFlags
impl Ord for EnvCreateFlags
sourceimpl PartialEq<EnvCreateFlags> for EnvCreateFlags
impl PartialEq<EnvCreateFlags> for EnvCreateFlags
sourcefn eq(&self, other: &EnvCreateFlags) -> bool
fn eq(&self, other: &EnvCreateFlags) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EnvCreateFlags) -> bool
fn ne(&self, other: &EnvCreateFlags) -> bool
This method tests for !=
.
sourceimpl PartialOrd<EnvCreateFlags> for EnvCreateFlags
impl PartialOrd<EnvCreateFlags> for EnvCreateFlags
sourcefn partial_cmp(&self, other: &EnvCreateFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &EnvCreateFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Sub<EnvCreateFlags> for EnvCreateFlags
impl Sub<EnvCreateFlags> for EnvCreateFlags
sourcefn sub(self, other: EnvCreateFlags) -> EnvCreateFlags
fn sub(self, other: EnvCreateFlags) -> EnvCreateFlags
Returns the set difference of the two sets of flags.
type Output = EnvCreateFlags
type Output = EnvCreateFlags
The resulting type after applying the -
operator.
sourceimpl SubAssign<EnvCreateFlags> for EnvCreateFlags
impl SubAssign<EnvCreateFlags> for EnvCreateFlags
sourcefn sub_assign(&mut self, other: EnvCreateFlags)
fn sub_assign(&mut self, other: EnvCreateFlags)
Disables all flags enabled in the set.
impl Copy for EnvCreateFlags
impl Eq for EnvCreateFlags
impl StructuralEq for EnvCreateFlags
impl StructuralPartialEq for EnvCreateFlags
Auto Trait Implementations
impl RefUnwindSafe for EnvCreateFlags
impl Send for EnvCreateFlags
impl Sync for EnvCreateFlags
impl Unpin for EnvCreateFlags
impl UnwindSafe for EnvCreateFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more