pub struct Slice2D { /* private fields */ }Expand description
A kind of slice that can be taken on a matrix, over its rows and columns.
Implementations§
Source§impl Slice2D
impl Slice2D
Sourcepub fn new() -> EmptySlice2DBuilder
pub fn new() -> EmptySlice2DBuilder
Constructs a builder object to create a 2d slice
The full syntax to create a Slice2D is like so:
use easy_ml::matrices::slices::{Slice2D, Slice};
Slice2D::new()
.rows(Slice::All())
.columns(Slice::Single(1));Rows and Column slices can be specified in either order but both must be given.
Auto Trait Implementations§
impl Freeze for Slice2D
impl RefUnwindSafe for Slice2D
impl Send for Slice2D
impl Sync for Slice2D
impl Unpin for Slice2D
impl UnwindSafe for Slice2D
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