#[repr(C)]pub struct Size<T> {
pub width: T,
pub height: T,
}
Fields§
§width: T
§height: T
Implementations§
Trait Implementations§
source§impl<T, U> AddAssign<U> for Size<T>where
T: AddAssign,
U: Into<Self>,
impl<T, U> AddAssign<U> for Size<T>where T: AddAssign, U: Into<Self>,
source§fn add_assign(&mut self, rhs: U)
fn add_assign(&mut self, rhs: U)
Performs the
+=
operation. Read moresource§impl<T> DivAssign<T> for Size<T>where
T: DivAssign + Copy,
impl<T> DivAssign<T> for Size<T>where T: DivAssign + Copy,
source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moresource§impl<T> MulAssign<T> for Size<T>where
T: MulAssign + Copy,
impl<T> MulAssign<T> for Size<T>where T: MulAssign + Copy,
source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moresource§impl<T> PartialEq<[T; 2]> for Size<T>where
T: PartialEq,
impl<T> PartialEq<[T; 2]> for Size<T>where T: PartialEq,
source§impl<T> PartialEq<(T, T)> for Size<T>where
T: PartialEq,
impl<T> PartialEq<(T, T)> for Size<T>where T: PartialEq,
source§impl<T> PartialEq<Size<T>> for [T; 2]where
T: PartialEq,
impl<T> PartialEq<Size<T>> for [T; 2]where T: PartialEq,
source§impl<T> PartialEq<Size<T>> for (T, T)where
T: PartialEq,
impl<T> PartialEq<Size<T>> for (T, T)where T: PartialEq,
source§impl<T: PartialEq> PartialEq<Size<T>> for Size<T>
impl<T: PartialEq> PartialEq<Size<T>> for Size<T>
source§impl<T, U> SubAssign<U> for Size<T>where
T: SubAssign,
U: Into<Self>,
impl<T, U> SubAssign<U> for Size<T>where T: SubAssign, U: Into<Self>,
source§fn sub_assign(&mut self, rhs: U)
fn sub_assign(&mut self, rhs: U)
Performs the
-=
operation. Read moreimpl<T: Copy> Copy for Size<T>
impl<T: Eq> Eq for Size<T>
impl<T> StructuralEq for Size<T>
impl<T> StructuralPartialEq for Size<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Size<T>where T: RefUnwindSafe,
impl<T> Send for Size<T>where T: Send,
impl<T> Sync for Size<T>where T: Sync,
impl<T> Unpin for Size<T>where T: Unpin,
impl<T> UnwindSafe for Size<T>where T: UnwindSafe,
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