pub enum BorderStyle {
None,
Hidden,
Solid,
Dashed,
Dotted,
Double,
}Expand description
How a border is drawn.
Variants§
None
No border. The computed border width is zero.
Hidden
Like None for drawing and layout, kept distinct because CSS does.
Solid
Dashed
Dotted
Double
Implementations§
Source§impl BorderStyle
impl BorderStyle
Sourcepub fn is_visible(self) -> bool
pub fn is_visible(self) -> bool
Whether the border takes up space and is drawn.
Trait Implementations§
Source§impl Clone for BorderStyle
impl Clone for BorderStyle
Source§fn clone(&self) -> BorderStyle
fn clone(&self) -> BorderStyle
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 BorderStyle
Source§impl Debug for BorderStyle
impl Debug for BorderStyle
Source§impl Default for BorderStyle
impl Default for BorderStyle
Source§fn default() -> BorderStyle
fn default() -> BorderStyle
Returns the “default value” for a type. Read more
impl Eq for BorderStyle
Source§impl Hash for BorderStyle
impl Hash for BorderStyle
Source§impl PartialEq for BorderStyle
impl PartialEq for BorderStyle
Source§fn eq(&self, other: &BorderStyle) -> bool
fn eq(&self, other: &BorderStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BorderStyle
Auto Trait Implementations§
impl Freeze for BorderStyle
impl RefUnwindSafe for BorderStyle
impl Send for BorderStyle
impl Sync for BorderStyle
impl Unpin for BorderStyle
impl UnsafeUnpin for BorderStyle
impl UnwindSafe for BorderStyle
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