FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RefCountable

    struct · ferroui-base · v0.5.0

    struct RefCountable
    

    Creates explicitly counted references; see RefCounted.

    View source

    Members

    create

    fn create<T: ?Sized + 'static>(item: Arc<T>, release: impl FnOnce() -> () + Send + 'static) -> RefCounted<T>
    

    Creates the first counted reference to item. release runs once, when the last reference is disposed (or dropped).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither

    Availability

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