#[non_exhaustive]pub enum TextDecoration {
Show 18 variants
Auto,
Blink,
Dashed,
Dotted,
Double,
FromFont,
GrammarError,
LineThrough,
None,
Overline,
Solid,
SpellingError,
Underline,
Wavy,
Length(Length),
Percentage(Percentage),
Color(Color),
Raw(Raw),
}Expand description
A value of text-decoration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
auto.
Blink
blink.
Dashed
dashed.
Dotted
dotted.
Double
double.
FromFont
from-font.
GrammarError
grammar-error.
LineThrough
line-through.
None
none.
Overline
overline.
Solid
solid.
SpellingError
spelling-error.
Underline
underline.
Wavy
wavy.
Length(Length)
A length.
Percentage(Percentage)
A percentage.
Color(Color)
A color.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for TextDecoration
impl Clone for TextDecoration
Source§fn clone(&self) -> TextDecoration
fn clone(&self) -> TextDecoration
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 moreSource§impl Debug for TextDecoration
impl Debug for TextDecoration
Source§impl Display for TextDecoration
impl Display for TextDecoration
Source§impl From<Color> for TextDecoration
impl From<Color> for TextDecoration
Source§impl From<Length> for TextDecoration
impl From<Length> for TextDecoration
Source§impl From<Percentage> for TextDecoration
impl From<Percentage> for TextDecoration
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
Source§impl From<Raw> for TextDecoration
impl From<Raw> for TextDecoration
Source§impl PartialEq for TextDecoration
impl PartialEq for TextDecoration
impl StructuralPartialEq for TextDecoration
Auto Trait Implementations§
impl Freeze for TextDecoration
impl RefUnwindSafe for TextDecoration
impl Send for TextDecoration
impl Sync for TextDecoration
impl Unpin for TextDecoration
impl UnsafeUnpin for TextDecoration
impl UnwindSafe for TextDecoration
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