#[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: f64Implementations§
Source§impl Rectangle
impl Rectangle
pub fn to_raw_none(&self) -> *mut cairo_rectangle_t
Trait Implementations§
impl Copy for Rectangle
Source§impl<'a> FromValue<'a> for Rectangle
impl<'a> FromValue<'a> for Rectangle
Source§type Checker = GenericValueTypeOrNoneChecker<Rectangle>
type Checker = GenericValueTypeOrNoneChecker<Rectangle>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl StaticType for Rectangle
impl StaticType for Rectangle
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl StructuralPartialEq for Rectangle
Source§impl ToValueOptional for Rectangle
impl ToValueOptional for Rectangle
Source§fn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an
Option to a Value.Auto Trait Implementations§
impl Freeze for Rectangle
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnsafeUnpin 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,
impl<'a, T, C> FromValueOptional<'a> for T
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.