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: f32Radius of the rounding of the North-West (left top) corner.
ne: f32Radius of the rounding of the North-East (right top) corner.
sw: f32Radius of the rounding of the South-West (left bottom) corner.
se: f32Radius 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more