pub struct SwitchMode(pub i64);
Tuple Fields§
§0: i64
Implementations§
source§impl SwitchMode
impl SwitchMode
pub const IMMEDIATE: SwitchMode = SwitchMode(0i64)
pub const SYNC: SwitchMode = SwitchMode(1i64)
pub const AT_END: SwitchMode = SwitchMode(2i64)
Trait Implementations§
source§impl Clone for SwitchMode
impl Clone for SwitchMode
source§fn clone(&self) -> SwitchMode
fn clone(&self) -> SwitchMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SwitchMode
impl Debug for SwitchMode
source§impl From<i64> for SwitchMode
impl From<i64> for SwitchMode
source§fn from(v: i64) -> SwitchMode
fn from(v: i64) -> SwitchMode
Converts to this type from the input type.
source§impl FromVariant for SwitchMode
impl FromVariant for SwitchMode
fn from_variant(v: &Variant) -> Result<SwitchMode, FromVariantError>
source§impl Hash for SwitchMode
impl Hash for SwitchMode
source§impl Ord for SwitchMode
impl Ord for SwitchMode
source§fn cmp(&self, other: &SwitchMode) -> Ordering
fn cmp(&self, other: &SwitchMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SwitchMode> for SwitchMode
impl PartialEq<SwitchMode> for SwitchMode
source§fn eq(&self, other: &SwitchMode) -> bool
fn eq(&self, other: &SwitchMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SwitchMode> for SwitchMode
impl PartialOrd<SwitchMode> for SwitchMode
source§fn partial_cmp(&self, other: &SwitchMode) -> Option<Ordering>
fn partial_cmp(&self, other: &SwitchMode) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl Copy for SwitchMode
impl Eq for SwitchMode
impl StructuralEq for SwitchMode
impl StructuralPartialEq for SwitchMode
Auto Trait Implementations§
impl RefUnwindSafe for SwitchMode
impl Send for SwitchMode
impl Sync for SwitchMode
impl Unpin for SwitchMode
impl UnwindSafe for SwitchMode
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.