pub enum ModeOption {
None,
Mode(u16),
Push(u16),
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ModeOption
impl Clone for ModeOption
Source§fn clone(&self) -> ModeOption
fn clone(&self) -> ModeOption
Returns a duplicate 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 ModeOption
impl Debug for ModeOption
Source§impl Default for ModeOption
impl Default for ModeOption
Source§fn default() -> ModeOption
fn default() -> ModeOption
Returns the “default value” for a type. Read more
Source§impl Ord for ModeOption
impl Ord for ModeOption
Source§fn cmp(&self, other: &ModeOption) -> Ordering
fn cmp(&self, other: &ModeOption) -> 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 ModeOption
impl PartialEq for ModeOption
Source§impl PartialOrd for ModeOption
impl PartialOrd for ModeOption
impl Copy for ModeOption
impl Eq for ModeOption
impl StructuralPartialEq for ModeOption
Auto Trait Implementations§
impl Freeze for ModeOption
impl RefUnwindSafe for ModeOption
impl Send for ModeOption
impl Sync for ModeOption
impl Unpin for ModeOption
impl UnwindSafe for ModeOption
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<S> BuildFrom<S> for S
impl<S> BuildFrom<S> for S
Source§fn build_from(source: S) -> S
fn build_from(source: S) -> S
Converts to this type from the input type.
Source§impl<S, T> BuildInto<T> for Swhere
T: BuildFrom<S>,
impl<S, T> BuildInto<T> for Swhere
T: BuildFrom<S>,
Source§fn build_into(self) -> T
fn build_into(self) -> T
Calls T::from(self) to convert a [S] into a [T].
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, T> TryBuildInto<T> for Swhere
T: TryBuildFrom<S>,
impl<S, T> TryBuildInto<T> for Swhere
T: TryBuildFrom<S>,
Source§type Error = <T as TryBuildFrom<S>>::Error
type Error = <T as TryBuildFrom<S>>::Error
The type returned in the event of a conversion error.
Source§fn try_build_into(self) -> Result<T, <T as TryBuildFrom<S>>::Error>
fn try_build_into(self) -> Result<T, <T as TryBuildFrom<S>>::Error>
Performs the conversion.