pub struct BorderSettings { /* private fields */ }
Expand description
Settings for the border of an element. If a side is left unset, no border will be created for that side
Implementations§
Source§impl BorderSettings
impl BorderSettings
Sourcepub fn bottom(self, spec: BorderSpecification) -> Self
pub fn bottom(self, spec: BorderSpecification) -> Self
Set the bottom border
Sourcepub fn top(self, spec: BorderSpecification) -> Self
pub fn top(self, spec: BorderSpecification) -> Self
Set the top border
Sourcepub fn left(self, spec: BorderSpecification) -> Self
pub fn left(self, spec: BorderSpecification) -> Self
Set the left border
Sourcepub fn right(self, spec: BorderSpecification) -> Self
pub fn right(self, spec: BorderSpecification) -> Self
Set the right border
Trait Implementations§
Source§impl Clone for BorderSettings
impl Clone for BorderSettings
Source§fn clone(&self) -> BorderSettings
fn clone(&self) -> BorderSettings
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 BorderSettings
impl Debug for BorderSettings
Source§impl Default for BorderSettings
impl Default for BorderSettings
Source§fn default() -> BorderSettings
fn default() -> BorderSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BorderSettings
impl RefUnwindSafe for BorderSettings
impl Send for BorderSettings
impl Sync for BorderSettings
impl Unpin for BorderSettings
impl UnwindSafe for BorderSettings
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