Enum bytecheck::Unreachable [−][src]
pub enum Unreachable {}
Expand description
An error that cannot be produced
This is used primarily for primitive types that do not have invalid values such as integers and floats.
Trait Implementations
impl Debug for Unreachable
[src]
impl Debug for Unreachable
[src]impl Display for Unreachable
[src]
impl Display for Unreachable
[src]impl Error for Unreachable
[src]
impl Error for Unreachable
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<Unreachable> for CharCheckError
[src]
impl From<Unreachable> for CharCheckError
[src]fn from(_: Unreachable) -> Self
[src]
fn from(_: Unreachable) -> Self
[src]Performs the conversion.
impl From<Unreachable> for NonZeroCheckError
[src]
impl From<Unreachable> for NonZeroCheckError
[src]fn from(_: Unreachable) -> Self
[src]
fn from(_: Unreachable) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Unreachable
impl Send for Unreachable
impl Sync for Unreachable
impl Unpin for Unreachable
impl UnwindSafe for Unreachable
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more