pub trait Salt {
// Required methods
fn salt(&self) -> &Salt;
fn salt_mut(&mut self) -> &mut Salt;
fn salt_offset_static() -> usize;
// Provided method
fn salt_offset(&self) -> usize { ... }
}
Required Methods§
fn salt(&self) -> &Salt
fn salt_mut(&mut self) -> &mut Salt
fn salt_offset_static() -> usize
Provided Methods§
fn salt_offset(&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.