[][src]Struct drying_paint::WatcherMeta

pub struct WatcherMeta<T: ?Sized> { /* fields omitted */ }

This structure is used internally by Watcher. It is passed to the init function of WatcherInit, the trait which is required to be implemented by the data stored in Watchers.

Methods

impl<T: 'static> WatcherMeta<T>[src]

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

impl<T: ?Sized + 'static> WatcherMeta<T>[src]

pub fn watch<F>(&mut self, func: F) where
    F: Fn(&mut T) + 'static, 
[src]

Use this to set up a function which should be re-run whenever watched values referenced inside change.

Auto Trait Implementations

impl<T> !RefUnwindSafe for WatcherMeta<T>

impl<T> !Send for WatcherMeta<T>

impl<T> !Sync for WatcherMeta<T>

impl<T: ?Sized> Unpin for WatcherMeta<T>

impl<T> !UnwindSafe for WatcherMeta<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, 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.