pub struct Rect {
pub x: i32,
pub y: i32,
pub w: i32,
pub h: i32,
}
Expand description
A generic rectangle struct that CNM Online uses internally
Fields§
§x: i32
X position of the rect
y: i32
Y position of the rect
w: i32
Width of the rect. Negative values are undefined and might crash CNM Online. These are i32’s because in the CNM Online source code and lparse files they are i32’s.
h: i32
Height of the rect. Negative values are undefined and might crash CNM Online. These are i32’s because in the CNM Online source code and lparse files they are i32’s.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rect
impl<'de> Deserialize<'de> for Rect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Rect
impl Eq for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
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