pub struct Representation {
pub codec: u8,
pub aead: u8,
pub ec: u8,
}Expand description
Codec, AEAD, and EC identifiers selecting how a representation was
encoded (§1.3). Per §2.2: codec id (1), aead id (1, 0x00 = none),
ec id (1, 0x00 = none). Total width is 3 bytes.
Registry IDs are normative; see limnifs/spec §10 (AEAD), §11 (codec),
§14 (feature-flag/EC variants).
Fields§
§codec: u8§aead: u8§ec: u8Implementations§
Trait Implementations§
Source§impl Clone for Representation
impl Clone for Representation
Source§fn clone(&self) -> Representation
fn clone(&self) -> Representation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Representation
Source§impl Debug for Representation
impl Debug for Representation
impl Eq for Representation
Source§impl Hash for Representation
impl Hash for Representation
Source§impl PartialEq for Representation
impl PartialEq for Representation
impl StructuralPartialEq for Representation
Auto Trait Implementations§
impl Freeze for Representation
impl RefUnwindSafe for Representation
impl Send for Representation
impl Sync for Representation
impl Unpin for Representation
impl UnsafeUnpin for Representation
impl UnwindSafe for Representation
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