#[non_exhaustive]#[repr(u8)]pub enum GainLocation {
Eeprom = 0,
Ram = 1,
}Expand description
Where get_frequency_gains reads from.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for GainLocation
impl Clone for GainLocation
Source§fn clone(&self) -> GainLocation
fn clone(&self) -> GainLocation
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 GainLocation
Source§impl Debug for GainLocation
impl Debug for GainLocation
impl Eq for GainLocation
Source§impl From<GainLocation> for u8
impl From<GainLocation> for u8
Source§fn from(enum_value: GainLocation) -> Self
fn from(enum_value: GainLocation) -> Self
Converts to this type from the input type.
Source§impl Hash for GainLocation
impl Hash for GainLocation
Source§impl PartialEq for GainLocation
impl PartialEq for GainLocation
impl StructuralPartialEq for GainLocation
Source§impl TryFrom<u8> for GainLocation
impl TryFrom<u8> for GainLocation
Source§type Error = TryFromPrimitiveError<GainLocation>
type Error = TryFromPrimitiveError<GainLocation>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for GainLocation
impl TryFromPrimitive for GainLocation
const NAME: &'static str = "GainLocation"
type Primitive = u8
type Error = TryFromPrimitiveError<GainLocation>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for GainLocation
impl RefUnwindSafe for GainLocation
impl Send for GainLocation
impl Sync for GainLocation
impl Unpin for GainLocation
impl UnsafeUnpin for GainLocation
impl UnwindSafe for GainLocation
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