Struct wasefire_board_api::Impossible
source · 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>
pub fn unreachable(&self) -> !
Trait Implementations§
source§impl<B: Api + ?Sized> Ord for Impossible<B>
impl<B: Api + ?Sized> Ord for Impossible<B>
source§impl<B: Api + ?Sized> PartialEq for Impossible<B>
impl<B: Api + ?Sized> PartialEq for Impossible<B>
source§impl<B: Api + ?Sized> PartialOrd for Impossible<B>
impl<B: Api + ?Sized> PartialOrd for Impossible<B>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<B: Api + ?Sized> Copy for Impossible<B>
impl<B: Api + ?Sized> Eq for Impossible<B>
Auto Trait Implementations§
impl<B: ?Sized> RefUnwindSafe for Impossible<B>where
B: RefUnwindSafe,
impl<B: ?Sized> Send for Impossible<B>
impl<B: ?Sized> Sync for Impossible<B>where
B: Sync,
impl<B: ?Sized> Unpin for Impossible<B>where
B: Unpin,
impl<B: ?Sized> UnwindSafe for Impossible<B>where
B: 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