[−][src]Struct drying_paint::WatchedMeta
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
impl !RefUnwindSafe for WatchedMeta
impl !Send for WatchedMeta
impl !Sync for WatchedMeta
impl Unpin for WatchedMeta
impl !UnwindSafe for WatchedMeta
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>,