[−][src]Struct easy_ml::matrices::slices::Slice2D
A kind of slice that can be taken on a matrix, over its rows and columns.
Methods
impl Slice2D[src]
pub fn new() -> EmptySlice2DBuilder[src]
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.
pub fn accepts(&self, row: Row, column: Column) -> bool[src]
Checks if this 2 dimensional slice accepts some index. The row and column slices it is composed from must accept the row and column respectively.
Auto Trait Implementations
impl RefUnwindSafe for Slice2D
impl Send for Slice2D
impl Sync for Slice2D
impl Unpin for Slice2D
impl UnwindSafe for Slice2D
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,