[−][src]Struct dep_obj::reactive::Reactive
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]
&mut self,
callback: fn(owner: Owner, context: &mut dyn Context, old: &Type)
)
Trait Implementations
Auto Trait Implementations
impl<Owner, Type> Send for Reactive<Owner, Type> where
Type: Send,
Type: Send,
impl<Owner, Type> Sync for Reactive<Owner, Type> where
Type: Sync,
Type: Sync,
impl<Owner, Type> Unpin for Reactive<Owner, Type> where
Type: Unpin,
Type: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,