pub trait AsListExt: IntoList + Sized {
// Provided method
fn wrap_list(self) -> AsList<Self> { ... }
}Expand description
Extension trait for wrapping values as AsList.
This trait is automatically implemented for all types that implement IntoList.
§Example
ⓘ
use miniextendr_api::convert::AsListExt;
#[derive(IntoList)]
struct Point { x: f64, y: f64 }
let point = Point { x: 1.0, y: 2.0 };
let wrapped: AsList<Point> = point.wrap_list();Provided Methods§
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.