[−][src]Struct sixtyfps_corelib::properties::PropertyTracker
This structure allow to run a closure that queries properties, and can report if any property we accessed have become dirty
Implementations
impl PropertyTracker
[src]
pub fn is_dirty(&self) -> bool
[src]
Any of the properties accessed during the last evaluation of the closure called from the last call to evaluate is pottentially dirty.
pub fn evaluate<R>(self: Pin<&Self>, f: impl FnOnce() -> R) -> R
[src]
Evaluate the function, and record dependencies of properties accessed whithin this function.
pub fn evaluate_if_dirty(self: Pin<&Self>, f: impl FnOnce())
[src]
call Self::evaluate
if and only if it is dirty
pub fn set_dirty(&self)
[src]
Mark this PropertyTracker as dirty
Trait Implementations
impl Default for PropertyTracker
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PropertyTracker
impl !Send for PropertyTracker
impl !Sync for PropertyTracker
impl !Unpin for PropertyTracker
impl !UnwindSafe for PropertyTracker
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,
pub 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.
pub 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>,