pub enum Positions {
IndexOnly,
Affine(Affine),
Regular1 {
origin: f64,
step: f64,
},
Rectilinear(Vec<Vec<f64>>),
Curvilinear(Vec<CoordArray>),
Fitted(Arc<dyn FittedModel>),
Scheme(Arc<dyn CellScheme>),
Explicit(Arc<dyn Elements>),
}Expand description
How positions follow from an index, for the dims a mapping covers.
Variants§
IndexOnly
R0. No positions.
Affine(Affine)
R1, two dims (row, col) in that order: an affine transform.
Regular1
R1, one dim: origin is the position at index 0.0 (the outer edge
of the first element), step the change per element.
Rectilinear(Vec<Vec<f64>>)
R2. One coordinate vector per covered dim.
Curvilinear(Vec<CoordArray>)
R3. One array per output coordinate, each shaped like the covered dims.
Fitted(Arc<dyn FittedModel>)
R3’.
Scheme(Arc<dyn CellScheme>)
R4.
Explicit(Arc<dyn Elements>)
R5 and R6.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Positions
impl !UnwindSafe for Positions
impl Freeze for Positions
impl Send for Positions
impl Sync for Positions
impl Unpin for Positions
impl UnsafeUnpin for Positions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more