pub trait ToOutput {
// Required method
fn to_output(&self, output: &mut dyn Output);
// Provided methods
fn data_hash(&self) -> Hash { ... }
fn slice_to_output(slice: &[Self], output: &mut dyn Output)
where Self: Sized { ... }
fn output<T: Output + Default>(&self) -> T { ... }
fn vec(&self) -> Vec<u8> ⓘ { ... }
}Required Methods§
Provided Methods§
fn data_hash(&self) -> Hash
fn slice_to_output(slice: &[Self], output: &mut dyn Output)where
Self: Sized,
fn output<T: Output + Default>(&self) -> T
fn vec(&self) -> Vec<u8> ⓘ
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.