[][src]Struct embedded_text::style::StyledTextBox

pub struct StyledTextBox<'a, C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
{ pub text_box: TextBox<'a>, pub style: TextBoxStyle<C, F, A>, }

A styled TextBox struct.

Fields

text_box: TextBox<'a>

A TextBox that has an associated TextBoxStyle

style: TextBoxStyle<C, F, A>

The style of the TextBox

Trait Implementations

impl<'_, C, F, A> Dimensions for StyledTextBox<'_, C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

impl<'a, C, F, A> Drawable<C> for &'a StyledTextBox<'a, C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment,
    StyledTextBoxIterator<'a, C, F, A>: Iterator<Item = Pixel<C>>,
    StyledTextBox<'a, C, F, A>: StateFactory
[src]

impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, CenterAligned> where
    C: PixelColor,
    F: Font + Copy
[src]

type PixelIteratorState = CenterAlignedState<'a, C, F>

The type of the state variable used for rendering.

impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, Justified> where
    C: PixelColor,
    F: Font + Copy
[src]

type PixelIteratorState = JustifiedState<'a, C, F>

The type of the state variable used for rendering.

impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, LeftAligned> where
    C: PixelColor,
    F: Font + Copy
[src]

type PixelIteratorState = LeftAlignedState<'a, C, F>

The type of the state variable used for rendering.

impl<'a, C, F> StateFactory for StyledTextBox<'a, C, F, RightAligned> where
    C: PixelColor,
    F: Font + Copy
[src]

type PixelIteratorState = RightAlignedState<'a, C, F>

The type of the state variable used for rendering.

impl<'_, C, F, A> Transform for StyledTextBox<'_, C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

Auto Trait Implementations

impl<'a, C, F, A> RefUnwindSafe for StyledTextBox<'a, C, F, A> where
    A: RefUnwindSafe,
    C: RefUnwindSafe,
    F: RefUnwindSafe

impl<'a, C, F, A> Send for StyledTextBox<'a, C, F, A> where
    A: Send,
    C: Send,
    F: Send

impl<'a, C, F, A> Sync for StyledTextBox<'a, C, F, A> where
    A: Sync,
    C: Sync,
    F: Sync

impl<'a, C, F, A> Unpin for StyledTextBox<'a, C, F, A> where
    A: Unpin,
    C: Unpin,
    F: Unpin

impl<'a, C, F, A> UnwindSafe for StyledTextBox<'a, C, F, A> where
    A: UnwindSafe,
    C: UnwindSafe,
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.