Struct lyon_path::builder::BorderRadii
source · [−]pub struct BorderRadii {
pub top_left: f32,
pub top_right: f32,
pub bottom_left: f32,
pub bottom_right: f32,
}
Expand description
The radius of each corner of a rounded rectangle.
Fields
top_left: f32
top_right: f32
bottom_left: f32
bottom_right: f32
Implementations
sourceimpl BorderRadii
impl BorderRadii
Trait Implementations
sourceimpl Clone for BorderRadii
impl Clone for BorderRadii
sourcefn clone(&self) -> BorderRadii
fn clone(&self) -> BorderRadii
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BorderRadii
impl Debug for BorderRadii
sourceimpl Default for BorderRadii
impl Default for BorderRadii
sourcefn default() -> BorderRadii
fn default() -> BorderRadii
Returns the “default value” for a type. Read more
sourceimpl Display for BorderRadii
impl Display for BorderRadii
sourceimpl PartialEq<BorderRadii> for BorderRadii
impl PartialEq<BorderRadii> for BorderRadii
sourcefn eq(&self, other: &BorderRadii) -> bool
fn eq(&self, other: &BorderRadii) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BorderRadii) -> bool
fn ne(&self, other: &BorderRadii) -> bool
This method tests for !=
.
sourceimpl PartialOrd<BorderRadii> for BorderRadii
impl PartialOrd<BorderRadii> for BorderRadii
sourcefn partial_cmp(&self, other: &BorderRadii) -> Option<Ordering>
fn partial_cmp(&self, other: &BorderRadii) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for BorderRadii
impl StructuralPartialEq for BorderRadii
Auto Trait Implementations
impl RefUnwindSafe for BorderRadii
impl Send for BorderRadii
impl Sync for BorderRadii
impl Unpin for BorderRadii
impl UnwindSafe for BorderRadii
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more