pub struct OmittedNameCodec;Expand description
Omit names entirely. Encodes to empty, decodes to OmittedName.
Trait Implementations§
Source§impl Clone for OmittedNameCodec
impl Clone for OmittedNameCodec
Source§fn clone(&self) -> OmittedNameCodec
fn clone(&self) -> OmittedNameCodec
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 OmittedNameCodec
impl Debug for OmittedNameCodec
Source§impl Default for OmittedNameCodec
impl Default for OmittedNameCodec
Source§fn default() -> OmittedNameCodec
fn default() -> OmittedNameCodec
Returns the “default value” for a type. Read more
Source§impl NameCodec for OmittedNameCodec
impl NameCodec for OmittedNameCodec
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<OmittedName, DryIceError>
fn decode( _encoded: &[u8], _original_len: usize, ) -> Result<OmittedName, DryIceError>
Decode an encoded buffer into the codec’s decoded representation. Read more
Source§fn as_bytes(_decoded: &OmittedName) -> &[u8] ⓘ
fn as_bytes(_decoded: &OmittedName) -> &[u8] ⓘ
View the decoded name as raw bytes for use in
SeqRecordLike.Source§const IS_IDENTITY: bool = false
const IS_IDENTITY: bool = false
Whether the encoded form is identical to the raw input bytes.
impl Copy for OmittedNameCodec
Auto Trait Implementations§
impl Freeze for OmittedNameCodec
impl RefUnwindSafe for OmittedNameCodec
impl Send for OmittedNameCodec
impl Sync for OmittedNameCodec
impl Unpin for OmittedNameCodec
impl UnsafeUnpin for OmittedNameCodec
impl UnwindSafe for OmittedNameCodec
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