[][src]Struct glyph_brush_layout::SectionText

pub struct SectionText<'a> {
    pub text: &'a str,
    pub scale: PxScale,
    pub font_id: FontId,
}

Text to layout together using a font & scale.

Fields

text: &'a str

Text to render

scale: PxScale

Position on screen to render text, in pixels from top-left. Defaults to (0, 0).

font_id: FontId

Font id to use for this section.

It must be a valid id in the FontMap used for layout calls. The default FontId(0) should always be valid.

Trait Implementations

impl<'a> Clone for SectionText<'a>[src]

impl<'a> Copy for SectionText<'a>[src]

impl<'a> Debug for SectionText<'a>[src]

impl Default for SectionText<'static>[src]

impl<'a> PartialEq<SectionText<'a>> for SectionText<'a>[src]

impl<'a> StructuralPartialEq for SectionText<'a>[src]

impl<'_> ToSectionText for SectionText<'_>[src]

impl<'_, '_> ToSectionText for &'_ SectionText<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for SectionText<'a>

impl<'a> Send for SectionText<'a>

impl<'a> Sync for SectionText<'a>

impl<'a> Unpin for SectionText<'a>

impl<'a> UnwindSafe for SectionText<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.