Memo
struct · ferroui-view · v0.5.0
struct Memo<T: 'static>
A value computed from signals and memos, computed again when one of them
changes and read like a signal. Copy.
Members
with
fn with<R>(self: &Self, f: impl FnOnce(&T) -> R) -> R
Calls f with the value, computing it first when it is dirty; the read
is recorded.
get
fn get(self: &Self) -> T
where T: Clone
A copy of the value; the read is recorded.
get_untracked
fn get_untracked(self: &Self) -> T
where T: Clone
A copy of the value; the read is not recorded.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeIntoValue<T>FromValue<T>FromValue<Option<T>>IntoProp<T, Value>Borrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherIntoProp<T, FromMemo<V>>CloneCopy
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.