pub type Never = Infallible;
Expand description

A type with no possible values.

This is used to indicate values which can never be created, such as the error type of infallible futures.

This type is a stable equivalent to the ! type from std.

This is currently an alias for std::convert::Infallible, but in the future it may be an alias for !. See “Future compatibility” section of std::convert::Infallible for more.

Aliased Type§

enum Never {}

Variants§

Trait Implementations§

1.34.0 · source§

impl Clone for Infallible

source§

fn clone(&self) -> Infallible

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.34.0 · source§

impl Debug for Infallible

source§

fn fmt(&self, _: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
1.34.0 · source§

impl Display for Infallible

source§

fn fmt(&self, _: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
1.8.0 · source§

impl Error for Infallible

source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
1.34.0 · source§

impl From<!> for Infallible

source§

fn from(x: !) -> Infallible

Converts to this type from the input type.