pub struct Huozi { /* private fields */ }
Implementations§
source§impl Huozi
impl Huozi
source§impl Huozi
impl Huozi
pub fn parse_text( &self, text: &str, initial_text_style: &TextStyle, style_prefabs: Option<&HashMap<String, TextStyle>> ) -> Result<Vec<TextSection>, String>
pub fn layout_parse( &mut self, text: &str, layout_style: &LayoutStyle, initial_text_style: &TextStyle, style_prefabs: Option<&HashMap<String, TextStyle>> ) -> Result<(Vec<GlyphVertices>, u32, u32), String>
pub fn layout<'a, T: AsRef<Vec<TextSection>>>( &mut self, layout_style: &LayoutStyle, text_sections: T ) -> (Vec<GlyphVertices>, u32, u32)
Auto Trait Implementations§
impl RefUnwindSafe for Huozi
impl Send for Huozi
impl Sync for Huozi
impl Unpin for Huozi
impl UnwindSafe for Huozi
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more