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<'_, Never>,
_: <Never as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, Never>, _: <Never as Constrained>::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, E> Encode<W, E> for Never
impl<W, E> Encode<W, E> for Never
Source§fn encode(
self,
_: &mut E,
_: &mut MaybeUninit<W>,
_: <W as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, _: &mut E, _: &mut MaybeUninit<W>, _: <W as Constrained>::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
Source§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
Source§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to Self