pub struct BorderWidth {
pub left: u16,
pub right: u16,
pub top: u16,
pub bottom: u16,
pub between_children: u16,
}Expand description
Defines the border width for each side of an element.
Fields§
§left: u16Border width on the left side.
right: u16Border width on the right side.
top: u16Border width on the top side.
bottom: u16Border width on the bottom side.
between_children: u16Border width between child elements.
Trait Implementations§
Source§impl Clone for BorderWidth
impl Clone for BorderWidth
Source§fn clone(&self) -> BorderWidth
fn clone(&self) -> BorderWidth
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BorderWidth
impl RefUnwindSafe for BorderWidth
impl Send for BorderWidth
impl Sync for BorderWidth
impl Unpin for BorderWidth
impl UnwindSafe for BorderWidth
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