#[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> FromValue<'a> for &'a Rectangle
impl<'a> FromValue<'a> for &'a Rectangle
§type Checker = GenericValueTypeOrNoneChecker<&'a Rectangle>
type Checker = GenericValueTypeOrNoneChecker<&'a 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<'a> FromValue<'a> for Rectangle
impl<'a> FromValue<'a> for Rectangle
§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 PartialEq<Rectangle> for Rectangle
impl PartialEq<Rectangle> 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
.source§impl ToValueOptional for Rectangle
impl ToValueOptional for Rectangle
impl Copy for Rectangle
impl StructuralPartialEq for Rectangle
impl ValueTypeOptional for Rectangle
Auto Trait Implementations§
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> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.