Struct jep106::JEP106Code
source · [−]Expand description
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.
Implementations
sourceimpl JEP106Code
impl JEP106Code
sourcepub const fn new(cc: u8, id: u8) -> Self
pub const fn new(cc: u8, id: u8) -> Self
Creates a new JEP106Code struct from a JEP106 continuation code and a JEP106 id code tuple.
Trait Implementations
sourceimpl Clone for JEP106Code
impl Clone for JEP106Code
sourcefn clone(&self) -> JEP106Code
fn clone(&self) -> JEP106Code
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JEP106Code
impl Debug for JEP106Code
sourceimpl<'de> Deserialize<'de> for JEP106Code
impl<'de> Deserialize<'de> for JEP106Code
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for JEP106Code
impl Display for JEP106Code
sourceimpl PartialEq<JEP106Code> for JEP106Code
impl PartialEq<JEP106Code> for JEP106Code
sourcefn eq(&self, other: &JEP106Code) -> bool
fn eq(&self, other: &JEP106Code) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &JEP106Code) -> bool
fn ne(&self, other: &JEP106Code) -> bool
This method tests for !=
.
sourceimpl Serialize for JEP106Code
impl Serialize for JEP106Code
impl Copy for JEP106Code
impl Eq for JEP106Code
impl StructuralEq for JEP106Code
impl StructuralPartialEq for JEP106Code
Auto Trait Implementations
impl RefUnwindSafe for JEP106Code
impl Send for JEP106Code
impl Sync for JEP106Code
impl Unpin for JEP106Code
impl UnwindSafe for JEP106Code
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more