Struct vertigo::computed::Computed[][src]

pub struct Computed<T: PartialEq + 'static> { /* fields omitted */ }

Implementations

impl<T: PartialEq + 'static> Computed<T>[src]

pub fn new<F: Fn() -> Rc<T> + 'static>(
    deps: Dependencies,
    get_value: F
) -> Computed<T>
[src]

pub fn get_id(&self) -> GraphId[src]

pub fn get_value(&self) -> Rc<T>[src]

pub fn subscribe<F: Fn(&T) + 'static>(self, call: F) -> Client[src]

pub fn dependencies(&self) -> Dependencies[src]

pub fn map_for_render<K: PartialEq>(
    self,
    fun: fn(_: &Computed<T>) -> K
) -> Computed<K>
[src]

pub fn map<K: PartialEq, F: 'static + Fn(&Computed<T>) -> Rc<K>>(
    self,
    fun: F
) -> Computed<K>
[src]

pub fn id(&self) -> GraphId[src]

Trait Implementations

impl<T: PartialEq + 'static> Clone for Computed<T>[src]

impl<T: PartialEq + 'static> PartialEq<Computed<T>> for Computed<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Computed<T>[src]

impl<T> !Send for Computed<T>[src]

impl<T> !Sync for Computed<T>[src]

impl<T> Unpin for Computed<T>[src]

impl<T> !UnwindSafe for Computed<T>[src]

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.