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§
fn new(hash: u64, idx: NonZeroU32) -> Self
fn same_as(&self, other: &Self) -> bool
fn hash(&self) -> u64
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.