pub struct ImtParser { /* private fields */ }
Implementations§
source§impl ImtParser
impl ImtParser
pub fn new(bytes: Vec<u8>) -> Result<Self, ImtError>
pub fn font_props(&self) -> ImtFontProps
pub fn retrieve_text<T: AsRef<str>>( &self, text: T, script: ImtScript, lang: ImtLang ) -> Result<Vec<Arc<ImtParsedGlyph>>, ImtError>
pub fn retreive_info( &self, raw_glyphs: Vec<RawGlyph<()>>, script: ImtScript, lang: ImtLang ) -> Result<Vec<Info>, ImtError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ImtParser
impl Send for ImtParser
impl Sync for ImtParser
impl Unpin for ImtParser
impl !UnwindSafe for ImtParser
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