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§impl Clone for Infallible
impl Clone for Infallible
1.34.0§impl Debug for Infallible
impl Debug for Infallible
1.34.0§impl Display for Infallible
impl Display for Infallible
1.8.0§impl Error for Infallible
impl Error for Infallible
§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more