Rect
struct · ferroui-designer-tools · v0.5.0
struct Rect
Members
x
x: f64
y
y: f64
width
width: f64
height
height: f64
new
fn new(x: f64, y: f64, width: f64, height: f64) -> Self
right
fn right(self: Self) -> f64
bottom
fn bottom(self: Self) -> f64
center
fn center(self: Self) -> Point
validate
fn validate(self: Self) -> Result<()>
contains
fn contains(self: Self, p: Point) -> bool
intersects
fn intersects(self: Self, other: Self) -> bool
union
fn union(self: Self, other: Self) -> Self
translated
fn translated(self: Self, delta: Point) -> Result<Self>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedDeserializeOwnedCloneCopyDebugDefaultStructuralPartialEqPartialEqSerializeDeserialize<'de>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.