[][src]Struct lazy_futuristic::Setter

pub struct Setter<'l, T> { /* fields omitted */ }

Setter of Lazy objects which also acts as Mutex guard.

Implementations

impl<'l, T> Setter<'l, T>[src]

pub fn set(&self, value: T) -> &'l T[src]

Set the value.

Returns a reference of the stored value.

Trait Implementations

impl<'l, T: Debug> Debug for Setter<'l, T>[src]

Auto Trait Implementations

impl<'l, T> !RefUnwindSafe for Setter<'l, T>

impl<'l, T> Send for Setter<'l, T> where
    T: Sync

impl<'l, T> Sync for Setter<'l, T> where
    T: Sync

impl<'l, T> Unpin for Setter<'l, T>

impl<'l, T> !UnwindSafe for Setter<'l, T>

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> 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.