Struct tetra::graphics::mesh::BorderRadii [−]
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
impl BorderRadii
impl BorderRadii
pub fn new(radius: f32) -> BorderRadii
Trait Implementations
impl Clone for BorderRadii
impl Clone for BorderRadii
pub fn clone(&self) -> BorderRadii
pub fn clone(&self) -> BorderRadii
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for BorderRadii
impl Debug for BorderRadii
impl Default for BorderRadii
impl Default for BorderRadii
pub fn default() -> BorderRadii
pub fn default() -> BorderRadii
Returns the “default value” for a type. Read more
impl Display for BorderRadii
impl Display for BorderRadii
impl PartialEq<BorderRadii> for BorderRadii
impl PartialEq<BorderRadii> for BorderRadii
pub fn eq(&self, other: &BorderRadii) -> bool
pub fn eq(&self, other: &BorderRadii) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &BorderRadii) -> bool
pub fn ne(&self, other: &BorderRadii) -> bool
This method tests for !=
.
impl PartialOrd<BorderRadii> for BorderRadii
impl PartialOrd<BorderRadii> for BorderRadii
pub fn partial_cmp(&self, other: &BorderRadii) -> Option<Ordering>
pub fn partial_cmp(&self, other: &BorderRadii) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more