pub trait Extract {
type Target: Clone;
// Required method
fn extract_into(&self, buf: &mut Vec<Self::Target>);
// Provided method
fn extract(&self) -> Vec<Self::Target> { ... }
}Expand description
Extract one or more target values from a reference.
Required Associated Types§
Required Methods§
Sourcefn extract_into(&self, buf: &mut Vec<Self::Target>)
fn extract_into(&self, buf: &mut Vec<Self::Target>)
Append extracted values to buf.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".