pub struct GlyphAssembly {
pub parts: Vec<PortableMathAssemblyPart>,
}Expand description
Heap-owned OpenType MATH glyph assembly handed to the engine as an opaque
pointer by get_ot_assembly_ptr and reclaimed by free_ot_assembly.
This replaces XeTeX’s C GlyphAssembly ({count; hb_ot_math_glyph_part_t*})
with a safe Rust struct: it is allocated with Box::into_raw and freed with
Box::from_raw, never libc. build_opentype_assembly (the sole consumer in
this engine) reads it directly in Rust.
Fields§
§parts: Vec<PortableMathAssemblyPart>Trait Implementations§
Source§impl Clone for GlyphAssembly
impl Clone for GlyphAssembly
Source§impl Debug for GlyphAssembly
impl Debug for GlyphAssembly
Source§impl Default for GlyphAssembly
impl Default for GlyphAssembly
impl Eq for GlyphAssembly
Source§impl PartialEq for GlyphAssembly
impl PartialEq for GlyphAssembly
impl StructuralPartialEq for GlyphAssembly
Auto Trait Implementations§
impl Freeze for GlyphAssembly
impl RefUnwindSafe for GlyphAssembly
impl Send for GlyphAssembly
impl Sync for GlyphAssembly
impl Unpin for GlyphAssembly
impl UnsafeUnpin for GlyphAssembly
impl UnwindSafe for GlyphAssembly
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