pub struct WebText { /* private fields */ }Implementations
Trait Implementations
sourceimpl Text for WebText
impl Text for WebText
type TextLayout = WebTextLayout
type TextLayout = WebTextLayout
A concrete type that implements the
TextLayout trait. Read moretype TextLayoutBuilder = WebTextLayoutBuilder
type TextLayoutBuilder = WebTextLayoutBuilder
A concrete type that implements the
TextLayoutBuilder trait. Read moresourcefn font_family(&mut self, family_name: &str) -> Option<FontFamily>
fn font_family(&mut self, family_name: &str) -> Option<FontFamily>
Query the platform for a font with a given name, and return a
FontFamily
object corresponding to that font, if it is found. Read moresourcefn load_font(&mut self, _data: &[u8]) -> Result<FontFamily, Error>
fn load_font(&mut self, _data: &[u8]) -> Result<FontFamily, Error>
Load the provided font data and make it available for use. Read more
sourcefn new_text_layout(&mut self, text: impl TextStorage) -> Self::TextLayoutBuilder
fn new_text_layout(&mut self, text: impl TextStorage) -> Self::TextLayoutBuilder
Create a new layout object to display the provided
text. Read moreAuto Trait Implementations
impl RefUnwindSafe for WebText
impl !Send for WebText
impl !Sync for WebText
impl Unpin for WebText
impl UnwindSafe for WebText
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
sourcefn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
sourceimpl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
sourcefn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.