pub struct Size { /* private fields */ }
Implementations§
source§impl Size
impl Size
pub fn new(row_height: ElementIndex, column_width: ElementIndex) -> Self
pub fn from_tuple(size: (ElementIndex, ElementIndex)) -> Self
Trait Implementations§
source§impl From<(usize, usize)> for Size
impl From<(usize, usize)> for Size
source§fn from(size: (ElementIndex, ElementIndex)) -> Self
fn from(size: (ElementIndex, ElementIndex)) -> Self
Converts to this type from the input type.
source§impl GetMatrixDimensions for Size
impl GetMatrixDimensions for Size
fn row_height_ref(&self) -> &ElementIndex
fn column_width_ref(&self) -> &ElementIndex
source§impl PartialEq for Size
impl PartialEq for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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