Struct suzy::watch::WatchedMeta[][src]

pub struct WatchedMeta { /* fields omitted */ }

This provides the basic functionality behind watched values. You can use it to provide functionality using the watch system for cases where Watched and WatchedEvent are not appropriate.

Implementations

impl WatchedMeta[src]

pub fn new() -> WatchedMeta[src]

Create a new WatchedMeta instance

pub fn watched(&self)[src]

When run in a function designed to watch a value, will bind so that function will be re-run when this is triggered.

pub fn trigger(&self)[src]

Mark this value as having changed, so that watching functions will be marked as needing to be updated.

Panics

This function will panic if called outside of WatchContext::with

Trait Implementations

impl Default for WatchedMeta[src]

Auto Trait Implementations

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.