pub struct Impossible<B: Api + ?Sized>(/* private fields */);
Expand description
Impossible type with board parameter.
This type is useful when the type parameter B
needs to be mentioned in an enum. This type can
be destructed by calling its unreachable method.
Implementations§
Source§impl<B: Api + ?Sized> Impossible<B>
impl<B: Api + ?Sized> Impossible<B>
Sourcepub fn unreachable(&self) -> !
pub fn unreachable(&self) -> !
Provides a static proof of dead code.
Trait Implementations§
Source§impl<B: Api + ?Sized> Ord for Impossible<B>
impl<B: Api + ?Sized> Ord for Impossible<B>
Source§impl<B: Api + ?Sized> PartialOrd for Impossible<B>
impl<B: Api + ?Sized> PartialOrd for Impossible<B>
impl<B: Api + ?Sized> Copy for Impossible<B>
impl<B: Api + ?Sized> Eq for Impossible<B>
Auto Trait Implementations§
impl<B> Freeze for Impossible<B>where
B: ?Sized,
impl<B> RefUnwindSafe for Impossible<B>where
B: RefUnwindSafe + ?Sized,
impl<B> Send for Impossible<B>where
B: ?Sized,
impl<B> Sync for Impossible<B>
impl<B> Unpin for Impossible<B>
impl<B> UnwindSafe for Impossible<B>where
B: UnwindSafe + ?Sized,
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