Struct cairo::RectangleInt
source · #[repr(C)]pub struct RectangleInt {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}
Fields§
§x: i32
§y: i32
§width: i32
§height: i32
Implementations§
source§impl RectangleInt
impl RectangleInt
pub fn to_raw_none(&self) -> *mut cairo_rectangle_int_t
Trait Implementations§
source§impl Clone for RectangleInt
impl Clone for RectangleInt
source§fn clone(&self) -> RectangleInt
fn clone(&self) -> RectangleInt
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RectangleInt
impl Debug for RectangleInt
source§impl Display for RectangleInt
impl Display for RectangleInt
source§impl<'a> FromValue<'a> for &'a RectangleInt
impl<'a> FromValue<'a> for &'a RectangleInt
§type Checker = GenericValueTypeOrNoneChecker<&'a RectangleInt>
type Checker = GenericValueTypeOrNoneChecker<&'a RectangleInt>
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 RectangleInt
impl<'a> FromValue<'a> for RectangleInt
§type Checker = GenericValueTypeOrNoneChecker<RectangleInt>
type Checker = GenericValueTypeOrNoneChecker<RectangleInt>
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 Hash for RectangleInt
impl Hash for RectangleInt
source§impl PartialEq<RectangleInt> for RectangleInt
impl PartialEq<RectangleInt> for RectangleInt
source§fn eq(&self, other: &RectangleInt) -> bool
fn eq(&self, other: &RectangleInt) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl StaticType for RectangleInt
impl StaticType for RectangleInt
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for RectangleInt
impl ToValue for RectangleInt
source§impl ToValueOptional for RectangleInt
impl ToValueOptional for RectangleInt
source§impl ValueType for RectangleInt
impl ValueType for RectangleInt
§type Type = RectangleInt
type Type = RectangleInt
Type to get the
Type
from. Read moreimpl Copy for RectangleInt
impl Eq for RectangleInt
impl StructuralEq for RectangleInt
impl StructuralPartialEq for RectangleInt
impl ValueTypeOptional for RectangleInt
Auto Trait Implementations§
impl RefUnwindSafe for RectangleInt
impl Send for RectangleInt
impl Sync for RectangleInt
impl Unpin for RectangleInt
impl UnwindSafe for RectangleInt
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
.