pub struct Frames {
pub layout: Layout,
pub count: usize,
/* private fields */
}Expand description
The frames of several arguments to a function of their trailing axes, such as a matrix function of the last two: the result’s frame, as broadcasting pairs the arguments’ frames, its number of cells, and each argument’s cell under each of them.
Fields§
§layout: Layout§count: usizeImplementations§
Source§impl Frames
impl Frames
Sourcepub fn new(args: &[(&Layout, usize)]) -> Result<Self, Error>
pub fn new(args: &[(&Layout, usize)]) -> Result<Self, Error>
Pairs the frames of args, each a layout with the number of trailing axes in one of its cells. A Rank error where a layout has fewer axes than its cell, and a Length error where frames don’t agree, or where keyed frames would need a cell that an argument lacks.
Sourcepub fn one() -> Self
pub fn one() -> Self
The frames of arguments that are one cell each, with no frame axes: one cell, which each argument’s only cell fills. It allocates nothing.
Auto Trait Implementations§
impl Forget for Frames
impl Freeze for Frames
impl RefUnwindSafe for Frames
impl Send for Frames
impl Sync for Frames
impl Unpin for Frames
impl UnsafeUnpin for Frames
impl UnwindSafe for Frames
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> 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