Struct fates::fates::Fate[][src]

pub struct Fate<T: Clone> { /* fields omitted */ }

Implementations

impl<T: Clone> Fate<T>[src]

pub fn get(&self) -> T[src]

pub fn bind_value(&self, value: T)[src]

pub fn bind_expression(
    &self,
    expression: Box<dyn Fn() -> T + Send + Sync + 'static>,
    dependencies: Vec<Fate<T>>
)
[src]

pub fn from_value(value: T) -> Fate<T>[src]

pub fn from_expression(
    expression: Box<dyn Fn() -> T + Send + Sync + 'static>,
    dependencies: Vec<Fate<T>>
) -> Fate<T>
[src]

Trait Implementations

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

impl<T: Default + Clone> Default for Fate<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Fate<T>

impl<T> Send for Fate<T> where
    T: Send + Sync

impl<T> Sync for Fate<T> where
    T: Send + Sync

impl<T> Unpin for Fate<T>

impl<T> !UnwindSafe for Fate<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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.