pub type Rounding = CornerRadius;
👎Deprecated: Renamed to CornerRadius
Aliased Type§
struct Rounding {
pub nw: u8,
pub ne: u8,
pub sw: u8,
pub se: u8,
}
Fields§
§nw: u8
Radius of the rounding of the North-West (left top) corner.
ne: u8
Radius of the rounding of the North-East (right top) corner.
sw: u8
Radius of the rounding of the South-West (left bottom) corner.
se: u8
Radius of the rounding of the South-East (right bottom) corner.
Implementations
Source§impl CornerRadius
impl CornerRadius
Sourcepub const ZERO: CornerRadius
pub const ZERO: CornerRadius
No rounding on any corner.
Sourcepub const fn same(radius: u8) -> CornerRadius
pub const fn same(radius: u8) -> CornerRadius
Same rounding on all four corners.
Sourcepub fn at_least(self, min: u8) -> CornerRadius
pub fn at_least(self, min: u8) -> CornerRadius
Make sure each corner has a rounding of at least this.
Sourcepub fn at_most(self, max: u8) -> CornerRadius
pub fn at_most(self, max: u8) -> CornerRadius
Make sure each corner has a rounding of at most this.
Trait Implementations
Source§impl Add<u8> for CornerRadius
impl Add<u8> for CornerRadius
Source§type Output = CornerRadius
type Output = CornerRadius
The resulting type after applying the
+
operator.Source§impl Add for CornerRadius
impl Add for CornerRadius
Source§type Output = CornerRadius
type Output = CornerRadius
The resulting type after applying the
+
operator.Source§fn add(self, rhs: CornerRadius) -> CornerRadius
fn add(self, rhs: CornerRadius) -> CornerRadius
Performs the
+
operation. Read moreSource§impl AddAssign<u8> for CornerRadius
impl AddAssign<u8> for CornerRadius
Source§fn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
Performs the
+=
operation. Read moreSource§impl AddAssign for CornerRadius
impl AddAssign for CornerRadius
Source§fn add_assign(&mut self, rhs: CornerRadius)
fn add_assign(&mut self, rhs: CornerRadius)
Performs the
+=
operation. Read moreSource§impl Clone for CornerRadius
impl Clone for CornerRadius
Source§fn clone(&self) -> CornerRadius
fn clone(&self) -> CornerRadius
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 CornerRadius
impl Debug for CornerRadius
Source§impl Default for CornerRadius
impl Default for CornerRadius
Source§fn default() -> CornerRadius
fn default() -> CornerRadius
Returns the “default value” for a type. Read more
Source§impl Div<f32> for CornerRadius
impl Div<f32> for CornerRadius
Source§type Output = CornerRadius
type Output = CornerRadius
The resulting type after applying the
/
operator.Source§impl DivAssign<f32> for CornerRadius
impl DivAssign<f32> for CornerRadius
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moreSource§impl From<CornerRadiusF32> for CornerRadius
impl From<CornerRadiusF32> for CornerRadius
Source§fn from(cr: CornerRadiusF32) -> CornerRadius
fn from(cr: CornerRadiusF32) -> CornerRadius
Converts to this type from the input type.
Source§impl From<f32> for CornerRadius
impl From<f32> for CornerRadius
Source§fn from(radius: f32) -> CornerRadius
fn from(radius: f32) -> CornerRadius
Converts to this type from the input type.
Source§impl From<u8> for CornerRadius
impl From<u8> for CornerRadius
Source§fn from(radius: u8) -> CornerRadius
fn from(radius: u8) -> CornerRadius
Converts to this type from the input type.
Source§impl Hash for CornerRadius
impl Hash for CornerRadius
Source§impl Mul<f32> for CornerRadius
impl Mul<f32> for CornerRadius
Source§type Output = CornerRadius
type Output = CornerRadius
The resulting type after applying the
*
operator.Source§impl MulAssign<f32> for CornerRadius
impl MulAssign<f32> for CornerRadius
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moreSource§impl PartialEq for CornerRadius
impl PartialEq for CornerRadius
Source§impl Sub<u8> for CornerRadius
impl Sub<u8> for CornerRadius
Source§type Output = CornerRadius
type Output = CornerRadius
The resulting type after applying the
-
operator.Source§impl Sub for CornerRadius
impl Sub for CornerRadius
Source§type Output = CornerRadius
type Output = CornerRadius
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: CornerRadius) -> CornerRadius
fn sub(self, rhs: CornerRadius) -> CornerRadius
Performs the
-
operation. Read moreSource§impl SubAssign<u8> for CornerRadius
impl SubAssign<u8> for CornerRadius
Source§fn sub_assign(&mut self, rhs: u8)
fn sub_assign(&mut self, rhs: u8)
Performs the
-=
operation. Read moreSource§impl SubAssign for CornerRadius
impl SubAssign for CornerRadius
Source§fn sub_assign(&mut self, rhs: CornerRadius)
fn sub_assign(&mut self, rhs: CornerRadius)
Performs the
-=
operation. Read more