pub struct Dimensions {
pub width: usize,
pub height: usize,
}Fields§
§width: usize§height: usizeImplementations§
Trait Implementations§
Source§impl Algebra for Dimensions
impl Algebra for Dimensions
type Item = usize
fn new(first: Self::Item, last: Self::Item) -> Self
fn first(&self) -> Self::Item
fn last(&self) -> Self::Item
fn splat(value: Self::Item) -> Self
fn add(&self, rhs: Self) -> Self
fn add_assign(&mut self, rhs: Self)
fn sub(&self, rhs: Self) -> Self
fn sub_assign(&mut self, rhs: Self)
fn mul(&self, rhs: Self) -> Self
fn mul_assign(&mut self, rhs: Self)
fn div(&self, rhs: Self) -> Self
fn div_assign(&mut self, rhs: Self)
fn rem(&self, rhs: Self) -> Self
fn rem_assign(&mut self, rhs: Self)
fn eq(&self, rhs: Self) -> bool
fn from_tuple(tuple: (Self::Item, Self::Item)) -> Self
fn tuple(&self) -> (Self::Item, Self::Item)
fn into_dual<T: Algebra<Item = Self::Item>>(&self) -> T
fn add_self(&self) -> Self::Item
fn mul_self(&self) -> Self::Item
Source§impl Clone for Dimensions
impl Clone for Dimensions
Source§fn clone(&self) -> Dimensions
fn clone(&self) -> Dimensions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Dimensions
impl Debug for Dimensions
Source§impl Default for Dimensions
impl Default for Dimensions
Source§fn default() -> Dimensions
fn default() -> Dimensions
Returns the “default value” for a type. Read more
impl Copy for Dimensions
Auto Trait Implementations§
impl Freeze for Dimensions
impl RefUnwindSafe for Dimensions
impl Send for Dimensions
impl Sync for Dimensions
impl Unpin for Dimensions
impl UnwindSafe for Dimensions
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