pub trait ReifySlice: Sealed {
// Required methods
fn reify_slice(&self, slice: &Slice) -> Result<Selection, SliceError>;
fn reify_slices<V: AsRef<[Slice]>>(
&self,
slices: V,
) -> Result<Selection, SliceError>;
}
Expand description
Connects the select!
API to the Selection
algebra by enabling
base.reify_slice(slice)
syntax, where base: Slice
.
The base slice defines the coordinate system in which the slice is
interpreted. Slices are themselves Slice
values, typically
produced by select!
, and are reified as Selection
expressions
over the base.
Required Methods§
Sourcefn reify_slice(&self, slice: &Slice) -> Result<Selection, SliceError>
fn reify_slice(&self, slice: &Slice) -> Result<Selection, SliceError>
Reify a slice as a Selection
in the coordinate system of
self
.
Sourcefn reify_slices<V: AsRef<[Slice]>>(
&self,
slices: V,
) -> Result<Selection, SliceError>
fn reify_slices<V: AsRef<[Slice]>>( &self, slices: V, ) -> Result<Selection, SliceError>
Reify multiple slices as a union of selections in the
coordinate system of self
.
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.