pub struct Lanes {
pub outer: usize,
pub len: usize,
pub inner: usize,
}Expand description
An array’s items as lanes along one axis: outer lanes before it, each len items long, with inner items between neighbours along it.
Fields§
§outer: usize§len: usize§inner: usizeImplementations§
Source§impl Lanes
impl Lanes
Sourcepub fn new(shape: &[usize], axis: usize) -> Result<Self, Error>
pub fn new(shape: &[usize], axis: usize) -> Result<Self, Error>
The lanes along axis of an array of shape. A Rank error when axis is outside the rank, and a Limit error where element_count gives one.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Lanes
impl Freeze for Lanes
impl RefUnwindSafe for Lanes
impl Send for Lanes
impl Sync for Lanes
impl Unpin for Lanes
impl UnsafeUnpin for Lanes
impl UnwindSafe for Lanes
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 more