#[repr(u8)]pub enum SetDestination {
PINS = 0,
X = 1,
Y = 2,
PINDIRS = 4,
}
Variants§
Trait Implementations§
Source§impl Clone for SetDestination
impl Clone for SetDestination
Source§fn clone(&self) -> SetDestination
fn clone(&self) -> SetDestination
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 SetDestination
impl Debug for SetDestination
Source§impl PartialEq for SetDestination
impl PartialEq for SetDestination
Source§impl TryFrom<u8> for SetDestination
impl TryFrom<u8> for SetDestination
Source§type Error = TryFromPrimitiveError<SetDestination>
type Error = TryFromPrimitiveError<SetDestination>
The type returned in the event of a conversion error.
Source§fn try_from(
number: u8,
) -> Result<SetDestination, TryFromPrimitiveError<SetDestination>>
fn try_from( number: u8, ) -> Result<SetDestination, TryFromPrimitiveError<SetDestination>>
Performs the conversion.
Source§impl TryFromPrimitive for SetDestination
impl TryFromPrimitive for SetDestination
const NAME: &'static str = "SetDestination"
type Primitive = u8
type Error = TryFromPrimitiveError<SetDestination>
fn try_from_primitive( number: <SetDestination as TryFromPrimitive>::Primitive, ) -> Result<SetDestination, TryFromPrimitiveError<SetDestination>>
impl Copy for SetDestination
impl Eq for SetDestination
impl StructuralPartialEq for SetDestination
Auto Trait Implementations§
impl Freeze for SetDestination
impl RefUnwindSafe for SetDestination
impl Send for SetDestination
impl Sync for SetDestination
impl Unpin for SetDestination
impl UnwindSafe for SetDestination
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