Struct otter_api_tests::shapelib::Thunk[][src]

pub struct Thunk<U, F>(_)
where
    U: Sync,
    F: Sync + FnOnce() -> U
;

Implementations

impl<T, F> Thunk<T, F> where
    T: Sync,
    F: Sync + FnOnce() -> T, 
[src]

pub fn new(f: F) -> Thunk<T, F>[src]

pub fn force_eval(thunk: &Thunk<T, F>)[src]

pub fn into_inner(thunk: Thunk<T, F>) -> T[src]

Trait Implementations

impl<T, F> Debug for Thunk<T, F> where
    T: Sync + Debug,
    F: Sync + FnOnce() -> T, 
[src]

impl<T, F> Deref for Thunk<T, F> where
    T: Sync,
    F: Sync + FnOnce() -> T, 
[src]

type Target = T

The resulting type after dereferencing.

impl<Y, E, F> From<Thunk<Result<Y, E>, F>> for Result<Y, E> where
    E: Sync,
    F: Sync + FnOnce() -> Result<Y, E>,
    Y: Sync
[src]

Auto Trait Implementations

impl<U, F> !RefUnwindSafe for Thunk<U, F>

impl<U, F> Send for Thunk<U, F> where
    F: Send,
    U: Send

impl<U, F> Sync for Thunk<U, F> where
    F: Send,
    U: Send

impl<U, F> Unpin for Thunk<U, F> where
    F: Unpin,
    U: Unpin

impl<U, F> UnwindSafe for Thunk<U, F> where
    F: UnwindSafe,
    U: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<A> DynCastExt for A

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,