Enum BandLetter
#[non_exhaustive]pub enum BandLetter {
A,
B,
C,
D,
}Expand description
D-STAR radio band letter (A, B, C, D).
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.
Implementations§
§impl BandLetter
impl BandLetter
pub const fn try_from_char(c: char) -> Result<BandLetter, TypeError>
pub const fn try_from_char(c: char) -> Result<BandLetter, TypeError>
Construct a BandLetter from a character.
§Errors
Returns TypeError::InvalidBandLetter for any character other
than 'A', 'B', 'C', or 'D'.
Trait Implementations§
§impl Clone for BandLetter
impl Clone for BandLetter
§fn clone(&self) -> BandLetter
fn clone(&self) -> BandLetter
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 more§impl Debug for BandLetter
impl Debug for BandLetter
§impl Display for BandLetter
impl Display for BandLetter
§impl Hash for BandLetter
impl Hash for BandLetter
§impl PartialEq for BandLetter
impl PartialEq for BandLetter
impl Copy for BandLetter
impl Eq for BandLetter
impl StructuralPartialEq for BandLetter
Auto Trait Implementations§
impl Freeze for BandLetter
impl RefUnwindSafe for BandLetter
impl Send for BandLetter
impl Sync for BandLetter
impl Unpin for BandLetter
impl UnwindSafe for BandLetter
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