pub struct ImtParser { /* private fields */ }
Implementations
sourceimpl ImtParser
impl ImtParser
pub fn new(bytes: Vec<u8>) -> Result<Self, ImtError>
pub fn font_props(&self) -> ImtFontProps
pub fn retreive_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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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