[][src]Struct dep_obj::reactive::Reactive

pub struct Reactive<Owner: Copy, Type> { /* fields omitted */ }

Implementations

impl<Owner: Copy, Type: Eq> Reactive<Owner, Type>[src]

pub fn set_distinct(&mut self, value: Type) -> (Type, OnChanged<Owner, Type>)[src]

impl<Owner: Copy, Type> Reactive<Owner, Type>[src]

pub fn new(value: Type) -> Self[src]

pub fn set_uncond(&mut self, value: Type) -> (Type, OnChanged<Owner, Type>)[src]

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

pub fn on_changed(
    &mut self,
    callback: fn(owner: Owner, context: &mut dyn Context, old: &Type)
)
[src]

Trait Implementations

impl<Owner: Copy, Type> Debug for Reactive<Owner, Type> where
    Type: Debug
[src]

Auto Trait Implementations

impl<Owner, Type> Send for Reactive<Owner, Type> where
    Type: Send

impl<Owner, Type> Sync for Reactive<Owner, Type> where
    Type: Sync

impl<Owner, Type> Unpin for Reactive<Owner, Type> where
    Type: Unpin

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.