Enum embedded_text::alignment::center::CenterAlignedState
source · pub enum CenterAlignedState<'a, C, F>{
NextLine(Option<Token<'a>>, Cursor<F>),
DrawLine(StyledLineIterator<'a, C, F, UniformSpaceConfig>),
}Expand description
State variable used by the center aligned text renderer
Variants§
NextLine(Option<Token<'a>>, Cursor<F>)
Starts processing a line
DrawLine(StyledLineIterator<'a, C, F, UniformSpaceConfig>)
Renders the processed line
Trait Implementations§
Auto Trait Implementations§
impl<'a, C, F> Freeze for CenterAlignedState<'a, C, F>
impl<'a, C, F> RefUnwindSafe for CenterAlignedState<'a, C, F>where
F: RefUnwindSafe,
C: RefUnwindSafe,
impl<'a, C, F> Send for CenterAlignedState<'a, C, F>
impl<'a, C, F> Sync for CenterAlignedState<'a, C, F>
impl<'a, C, F> Unpin for CenterAlignedState<'a, C, F>
impl<'a, C, F> UnwindSafe for CenterAlignedState<'a, C, F>where
F: UnwindSafe,
C: UnwindSafe,
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