pub struct SwitchMode(pub i64);
Tuple Fields§
§0: i64
Implementations§
Source§impl SwitchMode
impl SwitchMode
pub const IMMEDIATE: SwitchMode
pub const SYNC: SwitchMode
pub const AT_END: SwitchMode
Trait Implementations§
Source§impl Clone for SwitchMode
impl Clone for SwitchMode
Source§fn clone(&self) -> SwitchMode
fn clone(&self) -> SwitchMode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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<SwitchMode> for i64
impl From<SwitchMode> for i64
Source§fn from(v: SwitchMode) -> Self
fn from(v: SwitchMode) -> Self
Converts to this type from the input type.
Source§impl From<i64> for SwitchMode
impl From<i64> for SwitchMode
Source§impl FromVariant for SwitchMode
impl FromVariant for SwitchMode
fn from_variant(v: &Variant) -> Result<Self, 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 for SwitchMode
impl PartialEq for SwitchMode
Source§impl PartialOrd for SwitchMode
impl PartialOrd for SwitchMode
impl Copy for SwitchMode
impl Eq for SwitchMode
impl StructuralPartialEq for SwitchMode
Auto Trait Implementations§
impl Freeze for SwitchMode
impl RefUnwindSafe for SwitchMode
impl Send for SwitchMode
impl Sync for SwitchMode
impl Unpin for SwitchMode
impl UnwindSafe for SwitchMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.