Enum futures_core::never::Never [−][src]
pub enum Never {}
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
.
Methods
impl Never
[src]
impl Never
pub fn never_into<T>(self) -> T
[src]
pub fn never_into<T>(self) -> T
Convert the Never
type into any other type.
Trait Implementations
impl Debug for Never
[src]
impl Debug for Never
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Never
[src]
impl Copy for Never
impl Clone for Never
[src]
impl Clone for Never
fn clone(&self) -> Never
[src]
fn clone(&self) -> Never
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for Never
[src]
impl Eq for Never
impl PartialEq for Never
[src]
impl PartialEq for Never
fn eq(&self, other: &Never) -> bool
[src]
fn eq(&self, other: &Never) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Ord for Never
[src]
impl Ord for Never
fn cmp(&self, other: &Never) -> Ordering
[src]
fn cmp(&self, other: &Never) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for Never
[src]
impl PartialOrd for Never
fn partial_cmp(&self, other: &Never) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Never) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
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 more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Future for Never
[src]
impl Future for Never
type Item = Never
A successful value
type Error = Never
An error
fn poll(&mut self, _: &mut Context) -> Poll<Never, Never>
[src]
fn poll(&mut self, _: &mut Context) -> Poll<Never, Never>
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
impl Stream for Never
[src]
impl Stream for Never
type Item = Never
Values yielded by the stream.
type Error = Never
Errors yielded by the stream.
fn poll_next(&mut self, _: &mut Context) -> Poll<Option<Never>, Never>
[src]
fn poll_next(&mut self, _: &mut Context) -> Poll<Option<Never>, Never>
Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None
if the stream is exhausted. Read more