#[non_exhaustive]pub enum TextEmphasis {
Circle,
Dot,
DoubleCircle,
Filled,
None,
Open,
Sesame,
Triangle,
Color(Color),
Quoted(Quoted),
Raw(Raw),
}Expand description
A value of text-emphasis.
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.
Circle
circle.
Dot
dot.
DoubleCircle
double-circle.
Filled
filled.
None
none.
Open
open.
Sesame
sesame.
Triangle
triangle.
Color(Color)
A color.
Quoted(Quoted)
A quoted string.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for TextEmphasis
impl Clone for TextEmphasis
Source§fn clone(&self) -> TextEmphasis
fn clone(&self) -> TextEmphasis
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 TextEmphasis
impl Debug for TextEmphasis
Source§impl Display for TextEmphasis
impl Display for TextEmphasis
Source§impl From<Color> for TextEmphasis
impl From<Color> for TextEmphasis
Source§impl From<Quoted> for TextEmphasis
impl From<Quoted> for TextEmphasis
Source§impl From<Raw> for TextEmphasis
impl From<Raw> for TextEmphasis
Source§impl PartialEq for TextEmphasis
impl PartialEq for TextEmphasis
impl StructuralPartialEq for TextEmphasis
Auto Trait Implementations§
impl Freeze for TextEmphasis
impl RefUnwindSafe for TextEmphasis
impl Send for TextEmphasis
impl Sync for TextEmphasis
impl Unpin for TextEmphasis
impl UnsafeUnpin for TextEmphasis
impl UnwindSafe for TextEmphasis
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