pub struct EncodableNever<W> { /* private fields */ }
Expand description
A type which cannot be constructed and encodes as a W
.
Trait Implementations§
Source§impl<W: Wire + Constrained> Encodable for EncodableNever<W>
impl<W: Wire + Constrained> Encodable for EncodableNever<W>
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
Whether the conversion from
Self
to Self::Encoded
is equivalent to copying the raw bytes
of Self
. Read moreSource§impl<E: ?Sized, W: Wire + Constrained> Encode<E> for EncodableNever<W>
impl<E: ?Sized, W: Wire + Constrained> Encode<E> for EncodableNever<W>
Source§fn encode(
self,
_: &mut E,
_: &mut MaybeUninit<Self::Encoded>,
_: W::Constraint,
) -> Result<(), EncodeError>
fn encode( self, _: &mut E, _: &mut MaybeUninit<Self::Encoded>, _: W::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Auto Trait Implementations§
impl<W> Freeze for EncodableNever<W>
impl<W> RefUnwindSafe for EncodableNever<W>where
W: RefUnwindSafe,
impl<W> Send for EncodableNever<W>where
W: Send,
impl<W> Sync for EncodableNever<W>where
W: Sync,
impl<W> Unpin for EncodableNever<W>where
W: Unpin,
impl<W> UnwindSafe for EncodableNever<W>where
W: UnwindSafe,
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