Trait ReifySlice

Source
pub trait ReifySlice: Sealed {
    // Required methods
    fn reify_slice(&self, slice: &Slice) -> Result<Selection, SliceError>;
    fn reify_slices<V>(&self, slices: V) -> Result<Selection, SliceError>
       where V: AsRef<[Slice]>;
}
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§

Source

fn reify_slice(&self, slice: &Slice) -> Result<Selection, SliceError>

Reify a slice as a Selection in the coordinate system of self.

Source

fn reify_slices<V>(&self, slices: V) -> Result<Selection, SliceError>
where V: AsRef<[Slice]>,

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.

Implementors§