doc.rust-lang.org
pub struct BuildHasherDefault<H>
Used to create a default BuildHasher instance for types that implement Hasher and Default.
struct
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
fn hash_one<T>(&self, x: T) -> u64
Calculates the hash of a single value.
method
core
Stable since 1.71.0
Version 1.100.0-nightly
doc.rust-lang.org
fn build_hasher(&self) -> <Self as >::Hasher
Creates a new hasher.
method
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
type Hasher
Type of the hasher that will be created.
associated_type
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait BuildHasher
A trait for creating instances of Hasher.
trait
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod hash
Generic hashing support.
module
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn ready<T>(t: T) -> Ready<T>
Creates a future that is immediately ready with a value.
function
core
Stable since 1.48.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn into_inner(self) -> T
Consumes the Ready, returning the wrapped value.
method
core
Stable since 1.82.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Ready<T>
A future that is immediately ready with a value.
struct
core
Stable since 1.48.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn poll_fn<T, F>(f: F) -> PollFn<F>
Creates a future that wraps a function returning Poll.
function
core
Stable since 1.64.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct PollFn<F>
A Future that wraps a function returning Poll.
struct
core
Stable since 1.64.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn pending<T>() -> Pending<T>
Creates a future which never resolves, representing a computation that never finishes.
function
core
Stable since 1.48.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Pending<T>
Creates a future which never resolves, representing a computation that never finishes.
struct
core
Stable since 1.48.0
Version 1.100.0-nightly
doc.rust-lang.org
fn into_future(self) -> <Self as >::IntoFuture
Creates a future from a value.
method
core
Stable since 1.64.0
Version 1.100.0-nightly
doc.rust-lang.org
type Output
The output that the future will produce on completion.
associated_type
core
Stable since 1.64.0
Version 1.100.0-nightly
doc.rust-lang.org
type IntoFuture
Which kind of future are we turning this into?
associated_type
core
Stable since 1.64.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait IntoFuture
Conversion into a Future.
trait
core
Stable since 1.64.0
Version 1.100.0-nightly
doc.rust-lang.org
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<<Self as >::Output>
Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available.
method
core
Stable since 1.36.0
Version 1.100.0-nightly
doc.rust-lang.org
type Output
The type of value produced on completion.
associated_type
core
Stable since 1.36.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Future
A future represents an asynchronous computation, commonly obtained by use of async.
trait
core
Stable since 1.36.0
Version 1.100.0-nightly