pub trait Assemble {
// Required method
fn assemble_into(&self, result: &mut Vec<u32>);
// Provided method
fn assemble(&self) -> Vec<u32> { ... }
}Expand description
Trait for assembling functionalities.
Required Methods§
Sourcefn assemble_into(&self, result: &mut Vec<u32>)
fn assemble_into(&self, result: &mut Vec<u32>)
Assembles the current object into the result vector, reducing the need for lots of allocations
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".