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