[−][src]Struct fontdue::layout::TextStyle
A style description for a segment of text.
Fields
text: &'a str
The text to layout.
px: f32
The scale of the text in pixel units.
font_index: usize
The font to layout the text in.
user_data: U
Additional user data to associate with glyphs produced by this text style.
Implementations
impl<'a> TextStyle<'a>
[src]
impl<'a, U: Copy + Clone> TextStyle<'a, U>
[src]
pub fn with_user_data(
text: &'a str,
px: f32,
font_index: usize,
user_data: U
) -> TextStyle<'a, U>
[src]
text: &'a str,
px: f32,
font_index: usize,
user_data: U
) -> TextStyle<'a, U>
Auto Trait Implementations
impl<'a, U> RefUnwindSafe for TextStyle<'a, U> where
U: RefUnwindSafe,
U: RefUnwindSafe,
impl<'a, U> Send for TextStyle<'a, U> where
U: Send,
U: Send,
impl<'a, U> Sync for TextStyle<'a, U> where
U: Sync,
U: Sync,
impl<'a, U> Unpin for TextStyle<'a, U> where
U: Unpin,
U: Unpin,
impl<'a, U> UnwindSafe for TextStyle<'a, U> where
U: UnwindSafe,
U: UnwindSafe,
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>,