pub struct RectF {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
Float-precision pixel rect — element bounds, selection boxes, and other
sub-pixel screen geometry. Rect (u32) stays the type for buffer/texture
areas; this one is for visual geometry derived from f32 layout math.
Fields§
§x: f32§y: f32§width: f32§height: f32Implementations§
Trait Implementations§
impl Copy for RectF
Source§impl<'de> Deserialize<'de> for RectF
impl<'de> Deserialize<'de> for RectF
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for RectF
Auto Trait Implementations§
impl Freeze for RectF
impl RefUnwindSafe for RectF
impl Send for RectF
impl Sync for RectF
impl Unpin for RectF
impl UnsafeUnpin for RectF
impl UnwindSafe for RectF
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