#[repr(C)]pub struct ISize {
pub width: i32,
pub height: i32,
}
Fields§
§width: i32
§height: i32
Implementations§
Source§impl ISize
impl ISize
pub const fn new(w: i32, h: i32) -> ISize
pub const fn new_empty() -> ISize
pub fn set(&mut self, w: i32, h: i32)
pub fn is_zero(self) -> bool
pub fn is_empty(self) -> bool
pub fn set_empty(&mut self)
pub const fn area(self) -> i64
pub fn equals(self, w: i32, h: i32) -> bool
Trait Implementations§
Source§impl AddAssign<ISize> for IPoint
impl AddAssign<ISize> for IPoint
Source§fn add_assign(&mut self, rhs: ISize)
fn add_assign(&mut self, rhs: ISize)
Performs the
+=
operation. Read moreSource§impl SubAssign<ISize> for IPoint
impl SubAssign<ISize> for IPoint
Source§fn sub_assign(&mut self, rhs: ISize)
fn sub_assign(&mut self, rhs: ISize)
Performs the
-=
operation. Read moreimpl 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