RefCountable
struct · ferroui-base · v0.5.0
struct RefCountable
Creates explicitly counted references; see RefCounted.
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).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.