[][src]Struct drying_paint::WatchedMeta

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.

Methods

impl WatchedMeta[src]

pub fn new() -> Self[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(&mut 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

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 = !

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.