FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    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.

    Source

    get

    fn get(self: &Self) -> T
    where T: Clone
    

    A copy of the value; the read is recorded.

    Source

    get_untracked

    fn get_untracked(self: &Self) -> T
    where T: Clone
    

    A copy of the value; the read is not recorded.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.