pub struct NormalBorder {
pub left: BorderSide,
pub right: BorderSide,
pub top: BorderSide,
pub bottom: BorderSide,
pub radius: Option<(StyleBorderTopLeftRadius, StyleBorderTopRightRadius, StyleBorderBottomLeftRadius, StyleBorderBottomRightRadius)>,
}
Expand description
Represents a normal border
property (no image border / nine-patch border)
Fields§
§left: BorderSide
§right: BorderSide
§top: BorderSide
§bottom: BorderSide
§radius: Option<(StyleBorderTopLeftRadius, StyleBorderTopRightRadius, StyleBorderBottomLeftRadius, StyleBorderBottomRightRadius)>
Trait Implementations§
Source§impl Clone for NormalBorder
impl Clone for NormalBorder
Source§fn clone(&self) -> NormalBorder
fn clone(&self) -> NormalBorder
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 NormalBorder
impl Debug for NormalBorder
Source§impl Hash for NormalBorder
impl Hash for NormalBorder
Source§impl Ord for NormalBorder
impl Ord for NormalBorder
Source§fn cmp(&self, other: &NormalBorder) -> Ordering
fn cmp(&self, other: &NormalBorder) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NormalBorder
impl PartialEq for NormalBorder
Source§impl PartialOrd for NormalBorder
impl PartialOrd for NormalBorder
impl Copy for NormalBorder
impl Eq for NormalBorder
impl StructuralPartialEq for NormalBorder
Auto Trait Implementations§
impl Freeze for NormalBorder
impl RefUnwindSafe for NormalBorder
impl Send for NormalBorder
impl Sync for NormalBorder
impl Unpin for NormalBorder
impl UnwindSafe for NormalBorder
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
)