pub trait AltrepExtractSubset {
// Required method
fn extract_subset(&self, indices: &[i32]) -> Option<SEXP>;
}Expand description
Trait for ALTREP types that can provide optimized subsetting.
Required Methods§
Sourcefn extract_subset(&self, indices: &[i32]) -> Option<SEXP>
fn extract_subset(&self, indices: &[i32]) -> Option<SEXP>
Extract a subset of this ALTREP.
indices contains 1-based R indices.
Return None to fall back to R’s default subsetting.