Struct thunk::strict::Strict [] [src]

pub struct Strict<T>(_);

A do-nothing, strict "thunk". This is intended for implementing structures which are generic over strictness.

Trait Implementations

impl<T: Clone> Clone for Strict<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Strict<T>
[src]

impl<T> From<T> for Strict<T>
[src]

Performs the conversion.

impl<T> AsRef<T> for Strict<T>
[src]

Performs the conversion.

impl<T> AsMut<T> for Strict<T>
[src]

Performs the conversion.

impl<T> Deref for Strict<T>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<T> DerefMut for Strict<T>
[src]

The method called to mutably dereference a value

impl<T> LazyRef for Strict<T>
[src]

Defer a computation stored as a FnOnce closure. Unwrapping/dereferencing will force the computation of the closure. The supplied closure must live as long as the type which the thunk computes. Read more

Manually force a thunk's computation.

Construct a thunk with a precomputed value. This means forcing the thunk is a no-op. Read more

impl<T> LazyMut for Strict<T>
[src]

impl<T> Lazy for Strict<T>
[src]

Unwrap a thunk into its inner value. This forces the thunk.