[−][src]Struct jep106::JEP106Code
A Struct which contains a fully qualified JEP106 manufacturer code.
Fields
id: u8
JEP106 identification code.
Points to a manufacturer name in the bank table corresponding to cc
.
cc: u8
JEP106 continuation code.
This code represents the bank which the manufacturer for a corresponding id
has to be looked up.
Methods
impl JEP106Code
[src]
pub const fn new(cc: u8, id: u8) -> Self
[src]
Creates a new JEP106Code struct from a JEP106 continuation code and a JEP106 id code tuple.
pub const fn get(&self) -> Option<&'static str>
[src]
Returns the manufacturer corresponding to a complete JEP106 code.
Returns an empty string if the JEP106 code is unknown.
pub const fn get_raw(cc: u8, id: u8) -> Option<&'static str>
[src]
Returns the manufacturer corresponding to a JEP106 continuation code and a JEP106 id code tuple.
Returns an empty string if the JEP106 code is unknown.
Trait Implementations
impl Clone for JEP106Code
[src]
fn clone(&self) -> JEP106Code
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for JEP106Code
[src]
impl Copy for JEP106Code
[src]
impl PartialEq<JEP106Code> for JEP106Code
[src]
fn eq(&self, other: &JEP106Code) -> bool
[src]
fn ne(&self, other: &JEP106Code) -> bool
[src]
impl Debug for JEP106Code
[src]
Auto Trait Implementations
impl Send for JEP106Code
impl Sync for JEP106Code
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,