Enum termimad::StyleToken
source · pub enum StyleToken {
Char(char),
Color(Color),
Attribute(Attribute),
Align(Alignment),
Dimension(u16),
None,
}
Expand description
something which may be part of a style
Variants§
Char(char)
Color(Color)
Attribute(Attribute)
Align(Alignment)
Dimension(u16)
None
A specified absence, meaning for example “no foreground”
Trait Implementations§
source§impl Clone for StyleToken
impl Clone for StyleToken
source§fn clone(&self) -> StyleToken
fn clone(&self) -> StyleToken
Returns a copy 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 StyleToken
impl Debug for StyleToken
source§impl Display for StyleToken
impl Display for StyleToken
source§impl PartialEq for StyleToken
impl PartialEq for StyleToken
source§fn eq(&self, other: &StyleToken) -> bool
fn eq(&self, other: &StyleToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StyleToken
impl StructuralPartialEq for StyleToken
Auto Trait Implementations§
impl Freeze for StyleToken
impl RefUnwindSafe for StyleToken
impl Send for StyleToken
impl Sync for StyleToken
impl Unpin for StyleToken
impl UnwindSafe for StyleToken
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