[][src]Struct easy_ml::matrices::slices::Slice2D

pub struct Slice2D { /* fields omitted */ }

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.