Skip to main content

WeakEntry

Trait WeakEntry 

Source
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§

Source

fn identity(&self) -> usize

Source

fn list_kind(&self) -> WeakListKind

Source

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".

Implementors§