pub trait AltrepIteratorItem: Sized {
type Data<I: Iterator<Item = Self>>: AltrepLen;
// Required method
fn into_data<I: Iterator<Item = Self>>(iter: I, len: usize) -> Self::Data<I>;
}Expand description
Choose the ALTREP data family for an iterator’s element type.
Built-in mappings cover native numeric values, logicals and owned strings. A local element type may implement this trait to select its own data adapter (for example, an existing coercing adapter). The resulting data still needs a concrete registered class, which owns duplication and serialization policy.
Raw SEXP is deliberately not inferred: storing one requires a GC-root owner.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".