pub struct BorderSides {
pub top: bool,
pub right: bool,
pub bottom: bool,
pub left: bool,
}Expand description
Controls which sides of a border are visible.
Fields§
§top: bool§right: bool§bottom: bool§left: boolImplementations§
Source§impl BorderSides
impl BorderSides
pub const fn all() -> Self
pub const fn none() -> Self
pub const fn horizontal() -> Self
pub const fn vertical() -> Self
pub fn has_horizontal(&self) -> bool
pub fn has_vertical(&self) -> bool
Trait Implementations§
Source§impl Clone for BorderSides
impl Clone for BorderSides
Source§fn clone(&self) -> BorderSides
fn clone(&self) -> BorderSides
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 moreSource§impl Debug for BorderSides
impl Debug for BorderSides
Source§impl Default for BorderSides
impl Default for BorderSides
Source§impl Hash for BorderSides
impl Hash for BorderSides
Source§impl PartialEq for BorderSides
impl PartialEq for BorderSides
impl Copy for BorderSides
impl Eq for BorderSides
impl StructuralPartialEq for BorderSides
Auto Trait Implementations§
impl Freeze for BorderSides
impl RefUnwindSafe for BorderSides
impl Send for BorderSides
impl Sync for BorderSides
impl Unpin for BorderSides
impl UnsafeUnpin for BorderSides
impl UnwindSafe for BorderSides
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