#[repr(C)]pub struct Rectangle {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}
Fields§
§x: i32
§y: i32
§width: i32
§height: i32
Implementations§
Trait Implementations§
Source§impl AsRef<RectangleInt> for Rectangle
impl AsRef<RectangleInt> for Rectangle
Source§fn as_ref(&self) -> &RectangleInt
fn as_ref(&self) -> &RectangleInt
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl From<RectangleInt> for Rectangle
impl From<RectangleInt> for Rectangle
Source§fn from(r: RectangleInt) -> Rectangle
fn from(r: RectangleInt) -> Rectangle
Converts to this type from the input type.
Source§impl<'a> FromValueOptional<'a> for Rectangle
impl<'a> FromValueOptional<'a> for Rectangle
Source§impl SetValueOptional for Rectangle
impl SetValueOptional for Rectangle
Source§impl StaticType for Rectangle
impl StaticType for Rectangle
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for Rectangle
impl Eq for Rectangle
impl StructuralPartialEq for Rectangle
Auto Trait Implementations§
impl Freeze for Rectangle
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnwindSafe for Rectangle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.