pub trait WeakEntry: Clone {
type Strong: Clone;
// Required methods
fn identity(&self) -> usize;
fn list_kind(&self) -> WeakListKind;
fn upgrade(&self) -> Option<Self::Strong>;
}Expand description
Minimal operations needed for collector-owned weak-registry bookkeeping.
Required Associated Types§
Required Methods§
fn identity(&self) -> usize
fn list_kind(&self) -> WeakListKind
fn upgrade(&self) -> Option<Self::Strong>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".