pub struct ISize { /* private fields */ }
Implementations§
source§impl ISize
impl ISize
pub const fn new() -> Self
pub const fn from_wh(width: i32, height: i32) -> Self
pub fn set(&mut self, width: i32, height: i32)
pub const fn width(&self) -> i32
pub const fn height(&self) -> i32
pub const fn area(&self) -> i64
pub const fn equals(&self, width: i32, height: i32) -> bool
Trait Implementations§
source§impl PartialEq for ISize
impl PartialEq for ISize
impl Copy for ISize
impl Eq for ISize
impl StructuralPartialEq for ISize
Auto Trait Implementations§
impl Freeze for ISize
impl RefUnwindSafe for ISize
impl Send for ISize
impl Sync for ISize
impl Unpin for ISize
impl UnwindSafe for ISize
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