pub struct Rounding {
pub nw: f32,
pub ne: f32,
pub sw: f32,
pub se: f32,
}
Expand description
How rounded the corners of things should be
Fields§
§nw: f32
Radius of the rounding of the North-West (left top) corner.
ne: f32
Radius of the rounding of the North-East (right top) corner.
sw: f32
Radius of the rounding of the South-West (left bottom) corner.
se: f32
Radius of the rounding of the South-East (right bottom) corner.
Implementations§
Trait Implementations§
Source§impl AddAssign<f32> for Rounding
impl AddAssign<f32> for Rounding
Source§fn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the
+=
operation. Read moreSource§impl AddAssign for Rounding
impl AddAssign for Rounding
Source§fn add_assign(&mut self, rhs: Rounding)
fn add_assign(&mut self, rhs: Rounding)
Performs the
+=
operation. Read moreSource§impl<'de> Deserialize<'de> for Rounding
impl<'de> Deserialize<'de> for Rounding
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Rounding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Rounding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DivAssign<f32> for Rounding
impl DivAssign<f32> for Rounding
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moreSource§impl MulAssign<f32> for Rounding
impl MulAssign<f32> for Rounding
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moreSource§impl Serialize for Rounding
impl Serialize for Rounding
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl SubAssign<f32> for Rounding
impl SubAssign<f32> for Rounding
Source§fn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the
-=
operation. Read moreSource§impl SubAssign for Rounding
impl SubAssign for Rounding
Source§fn sub_assign(&mut self, rhs: Rounding)
fn sub_assign(&mut self, rhs: Rounding)
Performs the
-=
operation. Read moreimpl Copy for Rounding
impl StructuralPartialEq for Rounding
Auto Trait Implementations§
impl Freeze for Rounding
impl RefUnwindSafe for Rounding
impl Send for Rounding
impl Sync for Rounding
impl Unpin for Rounding
impl UnwindSafe for Rounding
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