#[repr(u8)]pub enum SpectrumModuleType {
AMCTRLR = 1,
DUALCAB = 2,
}Expand description
Spectrum Engineering Animated Modeller module types
Variants§
AMCTRLR = 1
Animation controller (firmware derived from cancmd)
DUALCAB = 2
Dual cab based on cancab
Trait Implementations§
Source§impl Clone for SpectrumModuleType
impl Clone for SpectrumModuleType
Source§fn clone(&self) -> SpectrumModuleType
fn clone(&self) -> SpectrumModuleType
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 SpectrumModuleType
Source§impl Debug for SpectrumModuleType
impl Debug for SpectrumModuleType
impl Eq for SpectrumModuleType
Source§impl From<SpectrumModuleType> for u8
impl From<SpectrumModuleType> for u8
Source§fn from(enum_value: SpectrumModuleType) -> Self
fn from(enum_value: SpectrumModuleType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SpectrumModuleType
impl PartialEq for SpectrumModuleType
Source§fn eq(&self, other: &SpectrumModuleType) -> bool
fn eq(&self, other: &SpectrumModuleType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpectrumModuleType
Source§impl TryFrom<u8> for SpectrumModuleType
impl TryFrom<u8> for SpectrumModuleType
Source§type Error = TryFromPrimitiveError<SpectrumModuleType>
type Error = TryFromPrimitiveError<SpectrumModuleType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SpectrumModuleType
impl TryFromPrimitive for SpectrumModuleType
const NAME: &'static str = "SpectrumModuleType"
type Primitive = u8
type Error = TryFromPrimitiveError<SpectrumModuleType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl UnsafeFromPrimitive for SpectrumModuleType
impl UnsafeFromPrimitive for SpectrumModuleType
type Primitive = u8
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0:
Prefer to use unchecked_transmute_from, from_unchecked will be removed in a future release.
Transmutes into an enum from its primitive. Read more
Auto Trait Implementations§
impl Freeze for SpectrumModuleType
impl RefUnwindSafe for SpectrumModuleType
impl Send for SpectrumModuleType
impl Sync for SpectrumModuleType
impl Unpin for SpectrumModuleType
impl UnsafeUnpin for SpectrumModuleType
impl UnwindSafe for SpectrumModuleType
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