pub struct BorderRadius {
pub top_left: CornerRadius,
pub top_right: CornerRadius,
pub bottom_right: CornerRadius,
pub bottom_left: CornerRadius,
}Expand description
The four corners of a box, each rounded by what border-radius set.
Fields§
§top_left: CornerRadiusThe top left corner.
top_right: CornerRadiusThe top right corner.
bottom_right: CornerRadiusThe bottom right corner.
bottom_left: CornerRadiusThe bottom left corner.
Implementations§
Source§impl BorderRadius
impl BorderRadius
Sourcepub const SQUARE: BorderRadius
pub const SQUARE: BorderRadius
Four square corners: the initial value.
Sourcepub fn get(&self, which: Corner) -> CornerRadius
pub fn get(&self, which: Corner) -> CornerRadius
What the corner which holds.
Sourcepub fn corner(&mut self, which: Corner) -> &mut CornerRadius
pub fn corner(&mut self, which: Corner) -> &mut CornerRadius
The corner which.
Trait Implementations§
Source§impl Clone for BorderRadius
impl Clone for BorderRadius
Source§fn clone(&self) -> BorderRadius
fn clone(&self) -> BorderRadius
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BorderRadius
Source§impl Debug for BorderRadius
impl Debug for BorderRadius
Source§impl PartialEq for BorderRadius
impl PartialEq for BorderRadius
Source§impl Serialize for BorderRadius
impl Serialize for BorderRadius
impl StructuralPartialEq for BorderRadius
Auto Trait Implementations§
impl Freeze for BorderRadius
impl RefUnwindSafe for BorderRadius
impl Send for BorderRadius
impl Sync for BorderRadius
impl Unpin for BorderRadius
impl UnsafeUnpin for BorderRadius
impl UnwindSafe for BorderRadius
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.