Trait StrongHandle

Source
pub trait StrongHandle: From<Handle> {
    // Required method
    fn handle(&self) -> Handle;
}
Expand description

A strong handle to data registered in a specific StrongRegistry.

Strong handles are useful for separating handles from different registries. A handle from one strong registry cannot be used for a different strong registry because the handle type is statically enforced at compile time.

Required Methods§

Source

fn handle(&self) -> Handle

Returns the associated handle.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§