pub enum BorderStyle {
None,
Hidden,
Dotted,
Dashed,
Solid,
Double,
Groove,
Ridge,
Inset,
Outset,
}Expand description
Represents border style options.
Variants§
None
No border will be rendered.
Hidden
Forces the border to be hidden.
Dotted
Dotted border style.
Dashed
Dashed border style.
Solid
Solid border style.
Double
Double border style.
Groove
Groove border style.
Ridge
Ridge border style.
Inset
Inset border style.
Outset
Outset border style.
Implementations§
Source§impl BorderStyle
impl BorderStyle
Sourcepub const fn is_rendered(self) -> bool
pub const fn is_rendered(self) -> bool
Returns whether this border style should paint and reserve border width.
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
Source§impl<'i> FromCss<'i> for BorderStyle
impl<'i> FromCss<'i> for BorderStyle
Source§const VALID_TOKENS: &'static [CssToken]
const VALID_TOKENS: &'static [CssToken]
Returns the list of valid CSS tokens for this type.
Source§fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
Parses the type from a
Parser instance.Source§fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
Helper function to parse the type from a string.
Source§const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
Message template used when building parse errors for this type.
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
Source§impl TailwindPropertyParser for BorderStyle
impl TailwindPropertyParser 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