Enum tui_markup::generator::Tag
source · [−]pub enum Tag<'a, C: TagConvertor<'a> + ?Sized> {
Fg(C::Color),
Bg(C::Color),
Modifier(C::Modifier),
Custom(C::Custom),
}Expand description
Tag of a Element after tag conversion stage.
Fg/Bg/Modifier variant is so-called builtin tag, Custom variant contains custom tag type.
Variants
Fg(C::Color)
Tag for change foreground color.
Bg(C::Color)
Tag for change background color.
Modifier(C::Modifier)
Tag for use style modifier.
Custom(C::Custom)
A custom tag.
Trait Implementations
sourceimpl<'a, C: Clone + TagConvertor<'a> + ?Sized> Clone for Tag<'a, C> where
C::Color: Clone,
C::Color: Clone,
C::Modifier: Clone,
C::Custom: Clone,
impl<'a, C: Clone + TagConvertor<'a> + ?Sized> Clone for Tag<'a, C> where
C::Color: Clone,
C::Color: Clone,
C::Modifier: Clone,
C::Custom: Clone,
sourceimpl<'a, C: Debug + TagConvertor<'a> + ?Sized> Debug for Tag<'a, C> where
C::Color: Debug,
C::Color: Debug,
C::Modifier: Debug,
C::Custom: Debug,
impl<'a, C: Debug + TagConvertor<'a> + ?Sized> Debug for Tag<'a, C> where
C::Color: Debug,
C::Color: Debug,
C::Modifier: Debug,
C::Custom: Debug,
Auto Trait Implementations
impl<'a, C: ?Sized> RefUnwindSafe for Tag<'a, C> where
<C as TagConvertor<'a>>::Color: RefUnwindSafe,
<C as TagConvertor<'a>>::Custom: RefUnwindSafe,
<C as TagConvertor<'a>>::Modifier: RefUnwindSafe,
impl<'a, C: ?Sized> Send for Tag<'a, C> where
<C as TagConvertor<'a>>::Color: Send,
<C as TagConvertor<'a>>::Custom: Send,
<C as TagConvertor<'a>>::Modifier: Send,
impl<'a, C: ?Sized> Sync for Tag<'a, C> where
<C as TagConvertor<'a>>::Color: Sync,
<C as TagConvertor<'a>>::Custom: Sync,
<C as TagConvertor<'a>>::Modifier: Sync,
impl<'a, C: ?Sized> Unpin for Tag<'a, C> where
<C as TagConvertor<'a>>::Color: Unpin,
<C as TagConvertor<'a>>::Custom: Unpin,
<C as TagConvertor<'a>>::Modifier: Unpin,
impl<'a, C: ?Sized> UnwindSafe for Tag<'a, C> where
<C as TagConvertor<'a>>::Color: UnwindSafe,
<C as TagConvertor<'a>>::Custom: UnwindSafe,
<C as TagConvertor<'a>>::Modifier: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more