Trait Owner

Source
pub trait Owner: Clone + PartialEq {
    type Key: Key;

    // Required methods
    fn key(&self) -> Self::Key;
    fn shared_count(&self) -> usize;
}

Required Associated Types§

Required Methods§

Source

fn key(&self) -> Self::Key

Source

fn shared_count(&self) -> usize

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§

Source§

impl<T: 'static> Owner for Owner<T>

Source§

type Key = Key<T>