pub enum Never {}
Expand description
Return type of functions that will only ever either return an actual error or [nb::WouldBlock], but are expressed as result for clarity and ergonomics.
To turn this into a !
, you can use the expression match never {}
.
Auto Trait Implementations§
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