SharedPlaceholder

Trait SharedPlaceholder 

Source
pub trait SharedPlaceholder: Clone {
    // Required methods
    fn new(hash: u64, idx: NonZeroU32) -> Self;
    fn same_as(&self, other: &Self) -> bool;
    fn hash(&self) -> u64;
    fn idx(&self) -> NonZeroU32;
}

Required Methods§

Source

fn new(hash: u64, idx: NonZeroU32) -> Self

Source

fn same_as(&self, other: &Self) -> bool

Source

fn hash(&self) -> u64

Source

fn idx(&self) -> NonZeroU32

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§