Struct ratchet_core::NoExt
source · pub struct NoExt;
Expand description
An extension stub that does nothing.
Trait Implementations§
source§impl ExtensionDecoder for NoExt
impl ExtensionDecoder for NoExt
source§impl ExtensionEncoder for NoExt
impl ExtensionEncoder for NoExt
source§impl ReunitableExtension for NoExt
impl ReunitableExtension for NoExt
source§fn reunite(_encoder: Self::SplitEncoder, _decoder: Self::SplitDecoder) -> Self
fn reunite(_encoder: Self::SplitEncoder, _decoder: Self::SplitDecoder) -> Self
Reunite this encoder and decoder back into a single extension.
source§impl SplittableExtension for NoExt
impl SplittableExtension for NoExt
§type SplitEncoder = NoExtEncoder
type SplitEncoder = NoExtEncoder
The type of the encoder.
§type SplitDecoder = NoExtDecoder
type SplitDecoder = NoExtDecoder
The type of the decoder.
source§fn split(self) -> (Self::SplitEncoder, Self::SplitDecoder)
fn split(self) -> (Self::SplitEncoder, Self::SplitDecoder)
Split this extension into its encoder and decoder halves.
impl Copy for NoExt
Auto Trait Implementations§
impl Freeze for NoExt
impl RefUnwindSafe for NoExt
impl Send for NoExt
impl Sync for NoExt
impl Unpin for NoExt
impl UnwindSafe for NoExt
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> 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