FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SingleAssignmentDisposable

    struct · ferroui-reactive · v0.5.0

    struct SingleAssignmentDisposable
    

    A disposable whose underlying disposable can be assigned once (SingleAssignmentDisposable).

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Source

    disposable

    fn disposable(self: &Self) -> Option<Rc<dyn IDisposable>>
    

    The assigned disposable, if any.

    Source

    set_disposable

    fn set_disposable(self: &Self, value: Option<Rc<dyn IDisposable>>)
    

    Assigns the underlying disposable. Panics when one was assigned already; a disposable assigned after this one was disposed is disposed at once.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • Default
    • IDisposable
    • ICancelable

    Availability

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