pub struct Shape { /* private fields */ }Implementations§
Source§impl Shape
impl Shape
pub const fn new(rows: usize, columns: usize) -> Self
pub const fn rows(self) -> usize
pub const fn columns(self) -> usize
pub fn element_count(self) -> Result<usize, LinearError>
pub fn row_index(self, index: usize) -> Result<RowIndex, LinearError>
pub fn column_index(self, index: usize) -> Result<ColumnIndex, LinearError>
Trait Implementations§
impl Copy for Shape
impl Eq for Shape
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
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