pub enum Axes {
All,
Axis(i32),
Axes(Vec<i32>),
}Expand description
Axis selection for operations that accept all, one, or several axes.
Convert an i32, Vec<i32>, slice, or array with .into(). Operations with additional
independent defaults use a concrete FooOptions: Default type; for example,
crate::fft::FftnOptions combines FFT lengths with this selection.
Variants§
All
Select every axis.
Axis(i32)
Select one axis.
Axes(Vec<i32>)
Select several axes in the given order.
Trait Implementations§
impl Eq for Axes
impl StructuralPartialEq for Axes
Auto Trait Implementations§
impl Freeze for Axes
impl RefUnwindSafe for Axes
impl Send for Axes
impl Sync for Axes
impl Unpin for Axes
impl UnsafeUnpin for Axes
impl UnwindSafe for Axes
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Convert into an
Option.