#[repr(C)]pub struct Size_<T> {
pub width: T,
pub height: T,
}
Expand description
Fields
width: T
height: T
Implementations
Trait Implementations
sourceimpl<S, R: AddAssign<S>> AddAssign<Size_<S>> for Rect_<R>
impl<S, R: AddAssign<S>> AddAssign<Size_<S>> for Rect_<R>
sourcefn add_assign(&mut self, rhs: Size_<S>)
fn add_assign(&mut self, rhs: Size_<S>)
Performs the +=
operation. Read more
sourceimpl<T: AddAssign> AddAssign<Size_<T>> for Size_<T>
impl<T: AddAssign> AddAssign<Size_<T>> for Size_<T>
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the +=
operation. Read more
sourceimpl<T: DivAssign + Copy> DivAssign<T> for Size_<T>
impl<T: DivAssign + Copy> DivAssign<T> for Size_<T>
sourcefn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the /=
operation. Read more
sourceimpl<T: MulAssign + Copy> MulAssign<T> for Size_<T>
impl<T: MulAssign + Copy> MulAssign<T> for Size_<T>
sourcefn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the *=
operation. Read more
sourceimpl<T: PartialOrd> PartialOrd<Size_<T>> for Size_<T>
impl<T: PartialOrd> PartialOrd<Size_<T>> for Size_<T>
sourcefn partial_cmp(&self, other: &Size_<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Size_<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<S, R: SubAssign<S>> SubAssign<Size_<S>> for Rect_<R>
impl<S, R: SubAssign<S>> SubAssign<Size_<S>> for Rect_<R>
sourcefn sub_assign(&mut self, rhs: Size_<S>)
fn sub_assign(&mut self, rhs: Size_<S>)
Performs the -=
operation. Read more
sourceimpl<T: SubAssign> SubAssign<Size_<T>> for Size_<T>
impl<T: SubAssign> SubAssign<Size_<T>> for Size_<T>
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the -=
operation. Read more
impl<T: Copy> Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more