Expand description
Stores an ordered pair of floating-point values, typically the width and height of a rectangle.
Fields§
§width: f32
Horizontal component.
height: f32
Vertical component.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sizef
impl<'de> Deserialize<'de> for Sizef
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
source§impl From<D2D_SIZE_F> for Sizef
impl From<D2D_SIZE_F> for Sizef
source§fn from(point: D2D_SIZE_F) -> Sizef
fn from(point: D2D_SIZE_F) -> Sizef
Converts to this type from the input type.
source§impl From<Sizef> for D2D_SIZE_F
impl From<Sizef> for D2D_SIZE_F
source§fn from(point: Sizef) -> D2D_SIZE_F
fn from(point: Sizef) -> D2D_SIZE_F
Converts to this type from the input type.