pub struct Identity;Expand description
Decoding is a validated copy.
Zero-sized. The validation is the alphabet wrap itself, performed once at
the boundary by as_alphabet_full (which cannot fail) or as_alphabet
(which reports the observed bound rather than failing), so the code type is
Alphabet and there is nothing left for the decode to check (§5.2, §6.2).
Trait Implementations§
Source§impl<E: IntegerElement, Bd: Bound> Codec<E, Bd> for Identity
impl<E: IntegerElement, Bd: Bound> Codec<E, Bd> for Identity
Source§const TIER: TierId = TierId::Identity
const TIER: TierId = TierId::Identity
Which tier this is, for reports and for the kappa manifest.
Source§fn decode_seq(&self, codes: &[Self::Code], out: &mut [Alphabet<E, Bd>]) -> usize
fn decode_seq(&self, codes: &[Self::Code], out: &mut [Alphabet<E, Bd>]) -> usize
Bulk path, returning how many elements were written in total.
Source§const IS_FIXED_WIDTH: bool = true
const IS_FIXED_WIDTH: bool = true
impl Copy for Identity
impl Eq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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