#[repr(C)]pub struct Rectangle {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
}
Fields§
§x: f64
§y: f64
§width: f64
§height: f64
Implementations§
Source§impl Rectangle
impl Rectangle
pub fn to_raw_none(&self) -> *mut cairo_rectangle_t
Trait Implementations§
Source§impl<'a> FromValueOptional<'a> for Rectangle
impl<'a> FromValueOptional<'a> for Rectangle
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>
Source§impl SetValueOptional for Rectangle
impl SetValueOptional for Rectangle
unsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)
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 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
.