pub struct ApduTag(/* private fields */);Expand description
A 3-byte apdu_tag, held as a 24-bit value in the low three bytes of a u32.
Implementations§
Source§impl ApduTag
impl ApduTag
Sourcepub const fn from_bytes(b1: u8, b2: u8, b3: u8) -> Self
pub const fn from_bytes(b1: u8, b2: u8, b3: u8) -> Self
Build a tag from its three wire bytes (b1 must be 0x9F for a valid
public tag, but any value is accepted so private tags round-trip).
Sourcepub const fn from_u24(v: u32) -> Self
pub const fn from_u24(v: u32) -> Self
Build a tag from a raw 24-bit value (the low three bytes of v).
Trait Implementations§
impl Copy for ApduTag
impl Eq for ApduTag
Source§impl Ord for ApduTag
impl Ord for ApduTag
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ApduTag
impl PartialOrd for ApduTag
impl StructuralPartialEq for ApduTag
Auto Trait Implementations§
impl Freeze for ApduTag
impl RefUnwindSafe for ApduTag
impl Send for ApduTag
impl Sync for ApduTag
impl Unpin for ApduTag
impl UnsafeUnpin for ApduTag
impl UnwindSafe for ApduTag
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