pub struct Rect2f {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}
Expand description
Rectangle with single-precision floating-point coordinates
Fields§
§x: f32
§y: f32
§width: f32
§height: f32
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rect2f
impl<'de> Deserialize<'de> for Rect2f
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 Copy for Rect2f
impl StructuralPartialEq for Rect2f
Auto Trait Implementations§
impl Freeze for Rect2f
impl RefUnwindSafe for Rect2f
impl Send for Rect2f
impl Sync for Rect2f
impl Unpin for Rect2f
impl UnwindSafe for Rect2f
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