#[repr(u8)]pub enum LocoFunctionRange {
F0ToF4 = 1,
F5ToF8 = 2,
F9ToF12 = 3,
F13ToF20 = 4,
F21ToF28 = 5,
}Variants§
Trait Implementations§
Source§impl Clone for LocoFunctionRange
impl Clone for LocoFunctionRange
Source§fn clone(&self) -> LocoFunctionRange
fn clone(&self) -> LocoFunctionRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LocoFunctionRange
Source§impl Debug for LocoFunctionRange
impl Debug for LocoFunctionRange
impl Eq for LocoFunctionRange
Source§impl From<LocoFunctionRange> for u8
impl From<LocoFunctionRange> for u8
Source§fn from(enum_value: LocoFunctionRange) -> Self
fn from(enum_value: LocoFunctionRange) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LocoFunctionRange
impl PartialEq for LocoFunctionRange
Source§fn eq(&self, other: &LocoFunctionRange) -> bool
fn eq(&self, other: &LocoFunctionRange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LocoFunctionRange
Source§impl TryFrom<u8> for LocoFunctionRange
impl TryFrom<u8> for LocoFunctionRange
Source§type Error = TryFromPrimitiveError<LocoFunctionRange>
type Error = TryFromPrimitiveError<LocoFunctionRange>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for LocoFunctionRange
impl TryFromPrimitive for LocoFunctionRange
const NAME: &'static str = "LocoFunctionRange"
type Primitive = u8
type Error = TryFromPrimitiveError<LocoFunctionRange>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for LocoFunctionRange
impl RefUnwindSafe for LocoFunctionRange
impl Send for LocoFunctionRange
impl Sync for LocoFunctionRange
impl Unpin for LocoFunctionRange
impl UnsafeUnpin for LocoFunctionRange
impl UnwindSafe for LocoFunctionRange
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