pub enum Never {}Expand description
A type which cannot be constructed.
Trait Implementations§
Source§impl Constrained for Never
impl Constrained for Never
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, Self>,
_: Self::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, Self>, _: Self::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl<W: Wire, E: ?Sized> Encode<W, E> for Never
impl<W: Wire, E: ?Sized> Encode<W, E> for Never
Source§fn encode(
self,
_: &mut E,
_: &mut MaybeUninit<W>,
_: W::Constraint,
) -> Result<(), EncodeError>
fn encode( self, _: &mut E, _: &mut MaybeUninit<W>, _: W::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Auto Trait Implementations§
impl Freeze for Never
impl RefUnwindSafe for Never
impl Send for Never
impl Sync for Never
impl Unpin for Never
impl UnwindSafe for Never
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