Struct allsorts::tables::OpenTypeFont
source · [−]pub struct OpenTypeFont<'a> {
pub scope: ReadScope<'a>,
pub data: OpenTypeData<'a>,
}
Fields
scope: ReadScope<'a>
data: OpenTypeData<'a>
Implementations
sourceimpl<'a> OpenTypeFont<'a>
impl<'a> OpenTypeFont<'a>
pub fn table_provider(
&self,
index: usize
) -> Result<OffsetTableFontProvider<'a>, ParseError>
pub fn offset_table<'b>(
&'b self,
index: usize
) -> Result<Cow<'b, OffsetTable<'a>>, ParseError>
Trait Implementations
sourceimpl<'a> Clone for OpenTypeFont<'a>
impl<'a> Clone for OpenTypeFont<'a>
sourcefn clone(&self) -> OpenTypeFont<'a>
fn clone(&self) -> OpenTypeFont<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> ReadBinary<'a> for OpenTypeFont<'a>
impl<'a> ReadBinary<'a> for OpenTypeFont<'a>
type HostType = OpenTypeFont<'a>
fn read(ctxt: &mut ReadCtxt<'a>) -> Result<Self, ParseError>
Auto Trait Implementations
impl<'a> RefUnwindSafe for OpenTypeFont<'a>
impl<'a> Send for OpenTypeFont<'a>
impl<'a> Sync for OpenTypeFont<'a>
impl<'a> Unpin for OpenTypeFont<'a>
impl<'a> UnwindSafe for OpenTypeFont<'a>
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