FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IScopedResource

    trait · ferroui-base · v0.5.0

    trait IScopedResource<T>
    

    A value that is available until it is disposed.

    View source

    Members

    value

    fn value(self: &Self) -> T
    

    The value.

    Panics when the resource has been disposed.

    Source

    dispose

    fn dispose(self: &Self)
    

    Releases the value. Further calls do nothing.

    Source

    Trait implementations

    Availability

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