Fields
w: u32h: u32Implementations
sourceimpl Size
impl Size
pub const ZERO: Size = _
pub const fn new(w: u32, h: u32) -> Self
pub fn flip(&mut self) -> &Self
pub const fn max_side(&self) -> u32
pub const fn min_side(&self) -> u32
pub const fn area(&self) -> u64
pub const fn perimeter(&self) -> u64
pub fn pathological_mult(&self) -> f32
pub fn expand_with(&mut self, r: &Rect)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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