Struct math2d::Thicknessf
source · Expand description
Represents a margin around an axis-aligned rectangle.
Fields§
§left: f32
Left x component
top: f32
Top y component
right: f32
Right x component
bottom: f32
Bottom y component
Implementations§
source§impl Thicknessf
impl Thicknessf
Trait Implementations§
source§impl Clone for Thicknessf
impl Clone for Thicknessf
source§fn clone(&self) -> Thicknessf
fn clone(&self) -> Thicknessf
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 Thicknessf
impl Debug for Thicknessf
source§impl<'de> Deserialize<'de> for Thicknessf
impl<'de> Deserialize<'de> for Thicknessf
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<Vector2f> for Thicknessf
impl From<Vector2f> for Thicknessf
source§fn from(vec: Vector2f) -> Thicknessf
fn from(vec: Vector2f) -> Thicknessf
Converts to this type from the input type.
source§impl From<f32> for Thicknessf
impl From<f32> for Thicknessf
source§fn from(f: f32) -> Thicknessf
fn from(f: f32) -> Thicknessf
Converts to this type from the input type.