pub struct DstarSlot(/* private fields */);Expand description
D-STAR memory slot index (1-6).
Identifies one of the 6 D-STAR callsign memory slots.
Used by the SD and CS CAT commands.
Implementations§
Source§impl DstarSlot
impl DstarSlot
Sourcepub const fn new(value: u8) -> Result<Self, ValidationError>
pub const fn new(value: u8) -> Result<Self, ValidationError>
Creates a new DstarSlot from a raw value.
§Errors
Returns ValidationError::SettingOutOfRange if value is not 1-6.
Trait Implementations§
impl Copy for DstarSlot
impl Eq for DstarSlot
impl StructuralPartialEq for DstarSlot
Auto Trait Implementations§
impl Freeze for DstarSlot
impl RefUnwindSafe for DstarSlot
impl Send for DstarSlot
impl Sync for DstarSlot
impl Unpin for DstarSlot
impl UnwindSafe for DstarSlot
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