Struct ttf_word_wrap::WhiteSpaceWordWrap[][src]

pub struct WhiteSpaceWordWrap<'fnt> { /* fields omitted */ }

WordWrap for variable-width TTF text.

Implementations

impl<'fnt> WhiteSpaceWordWrap<'fnt>[src]

pub fn new(max_width: u32, measure: &'fnt dyn Measure) -> Self[src]

Creates a new WhiteSpaceWordWrap

Will wrap at max_width and measure the glyphs using font_face

Trait Implementations

impl<'fnt> Debug for WhiteSpaceWordWrap<'fnt>[src]

Auto Trait Implementations

impl<'fnt> !RefUnwindSafe for WhiteSpaceWordWrap<'fnt>

impl<'fnt> !Send for WhiteSpaceWordWrap<'fnt>

impl<'fnt> !Sync for WhiteSpaceWordWrap<'fnt>

impl<'fnt> Unpin for WhiteSpaceWordWrap<'fnt>

impl<'fnt> !UnwindSafe for WhiteSpaceWordWrap<'fnt>

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.