Struct embedded_text::alignment::center::CenterAligned [−][src]
pub struct CenterAligned;
Marks text to be rendered center aligned.
This alignment can be used as both horizontal or vertical alignment.
Trait Implementations
impl Clone for CenterAligned[src]
impl Clone for CenterAligned[src]fn clone(&self) -> CenterAligned[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for CenterAligned[src]
impl Copy for CenterAligned[src]impl HorizontalTextAlignment for CenterAligned[src]
impl HorizontalTextAlignment for CenterAligned[src]const STARTING_SPACES: bool[src]
const ENDING_SPACES: bool[src]
impl VerticalTextAlignment for CenterAligned[src]
impl VerticalTextAlignment for CenterAligned[src]fn apply_vertical_alignment<'a, C, F, A, H>(
cursor: &mut Cursor<F>,
styled_text_box: &'a StyledTextBox<'a, C, F, A, Self, H>
) where
C: PixelColor,
F: Font + Copy,
A: HorizontalTextAlignment,
H: HeightMode, [src]
cursor: &mut Cursor<F>,
styled_text_box: &'a StyledTextBox<'a, C, F, A, Self, H>
) where
C: PixelColor,
F: Font + Copy,
A: HorizontalTextAlignment,
H: HeightMode,
Auto Trait Implementations
impl RefUnwindSafe for CenterAligned
impl RefUnwindSafe for CenterAlignedimpl Send for CenterAligned
impl Send for CenterAlignedimpl Sync for CenterAligned
impl Sync for CenterAlignedimpl Unpin for CenterAligned
impl Unpin for CenterAlignedimpl UnwindSafe for CenterAligned
impl UnwindSafe for CenterAligned