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 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 StyleToken
Source§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
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 UnsafeUnpin 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