pub trait AsNamedVectorExt: Sized {
// Provided method
fn wrap_named_vector(self) -> AsNamedVector<Self> { ... }
}Expand description
Extension trait for wrapping tuple pair collections as AsNamedVector.
§Example
ⓘ
let pairs = vec![("alice".to_string(), 95.0f64), ("bob".to_string(), 87.5)];
let wrapped = pairs.wrap_named_vector();Provided Methods§
Sourcefn wrap_named_vector(self) -> AsNamedVector<Self>
fn wrap_named_vector(self) -> AsNamedVector<Self>
Wrap self in AsNamedVector for named atomic R vector conversion.
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.