ScopedResource
struct · ferroui-base · v0.5.0
struct ScopedResource<T>
An IScopedResource that runs an action when it is disposed.
Members
create
fn create(value: T, dispose: impl FnOnce() -> () + 'static) -> Rc<dyn IScopedResource<T>>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherIScopedResource<T>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.