Trait ttf_word_wrap::Wrap[][src]

pub trait Wrap<'fnt, 'txt: 'fnt, T> where
    T: WordWrap<'fnt, 'txt>, 
{ fn wrap(&self, word_wrap: &'fnt T) -> T::Iterator; }

Provides .wrap() on &strs

The behavior of the wrapping can change depending on the WordWrap type passed in.

Required methods

fn wrap(&self, word_wrap: &'fnt T) -> T::Iterator[src]

Based on the word_wrap provided, provides an iterator of split lines.

Loading content...

Implementations on Foreign Types

impl<'fnt, 'txt: 'fnt, T> Wrap<'fnt, 'txt, T> for &str where
    T: WordWrap<'fnt, 'txt>,
    T::Iterator: 'fnt,
    Self: 'txt, 
[src]

Loading content...

Implementors

Loading content...