Struct ttf_word_wrap::WhiteSpaceWordWrap [−][src]
WordWrap for variable-width TTF text.
Implementations
impl<'fnt> WhiteSpaceWordWrap<'fnt>
[src]
pub fn new(max_width: u32, font_face: &'fnt Face<'fnt>) -> 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>
[src]
impl<'fnt> Send for WhiteSpaceWordWrap<'fnt>
[src]
impl<'fnt> Sync for WhiteSpaceWordWrap<'fnt>
[src]
impl<'fnt> Unpin for WhiteSpaceWordWrap<'fnt>
[src]
impl<'fnt> UnwindSafe for WhiteSpaceWordWrap<'fnt>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,