pub struct RawNameCodec;Expand description
Raw name storage. No transformation.
Trait Implementations§
Source§impl Clone for RawNameCodec
impl Clone for RawNameCodec
Source§fn clone(&self) -> RawNameCodec
fn clone(&self) -> RawNameCodec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawNameCodec
impl Debug for RawNameCodec
Source§impl Default for RawNameCodec
impl Default for RawNameCodec
Source§fn default() -> RawNameCodec
fn default() -> RawNameCodec
Returns the “default value” for a type. Read more
Source§impl NameCodec for RawNameCodec
impl NameCodec for RawNameCodec
Source§const IS_IDENTITY: bool = true
const IS_IDENTITY: bool = true
Whether the encoded form is identical to the raw input bytes.
Source§fn encode_into(name: &[u8], output: &mut Vec<u8>) -> Result<(), DryIceError>
fn encode_into(name: &[u8], output: &mut Vec<u8>) -> Result<(), DryIceError>
Encode raw name bytes, appending the encoded bytes directly
into the provided output buffer. Read more
Source§fn decode(encoded: &[u8], _original_len: usize) -> Result<RawName, DryIceError>
fn decode(encoded: &[u8], _original_len: usize) -> Result<RawName, DryIceError>
Decode an encoded buffer into the codec’s decoded representation. Read more
Source§fn as_bytes(decoded: &RawName) -> &[u8] ⓘ
fn as_bytes(decoded: &RawName) -> &[u8] ⓘ
View the decoded name as raw bytes for use in
SeqRecordLike.impl Copy for RawNameCodec
Auto Trait Implementations§
impl Freeze for RawNameCodec
impl RefUnwindSafe for RawNameCodec
impl Send for RawNameCodec
impl Sync for RawNameCodec
impl Unpin for RawNameCodec
impl UnsafeUnpin for RawNameCodec
impl UnwindSafe for RawNameCodec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more