#[repr(u16)]pub enum RepeatCode {
Delay = 0,
Period = 1,
}Variants§
Trait Implementations§
Source§impl Clone for RepeatCode
impl Clone for RepeatCode
Source§fn clone(&self) -> RepeatCode
fn clone(&self) -> RepeatCode
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 RepeatCode
impl Debug for RepeatCode
Source§impl From<RepeatCode> for u16
impl From<RepeatCode> for u16
Source§fn from(enum_value: RepeatCode) -> Self
fn from(enum_value: RepeatCode) -> Self
Converts to this type from the input type.
Source§impl Hash for RepeatCode
impl Hash for RepeatCode
Source§impl PartialEq for RepeatCode
impl PartialEq for RepeatCode
Source§impl TryFrom<u16> for RepeatCode
impl TryFrom<u16> for RepeatCode
Source§type Error = TryFromPrimitiveError<RepeatCode>
type Error = TryFromPrimitiveError<RepeatCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for RepeatCode
impl TryFromPrimitive for RepeatCode
const NAME: &'static str = "RepeatCode"
type Primitive = u16
type Error = TryFromPrimitiveError<RepeatCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for RepeatCode
impl Eq for RepeatCode
impl StructuralPartialEq for RepeatCode
Auto Trait Implementations§
impl Freeze for RepeatCode
impl RefUnwindSafe for RepeatCode
impl Send for RepeatCode
impl Sync for RepeatCode
impl Unpin for RepeatCode
impl UnwindSafe for RepeatCode
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