pub struct RawAdvanceWidthBatch {
pub len: usize,
pub gids: *const u32,
pub advances: *mut i32,
pub gid_stride: isize,
pub advance_stride: isize,
}Expand description
Raw C-style view over a batch of glyph ids and advance widths.
Fields§
§len: usizeNumber of batch entries.
gids: *const u32Pointer to glyph ids (read-only).
advances: *mut i32Pointer to horizontal advances (writable).
See “Metrics scaling” in the FontFuncs for details on what value this method should return.
gid_stride: isizeByte stride between successive glyph ids.
advance_stride: isizeByte stride between successive advances.
Trait Implementations§
Source§impl Clone for RawAdvanceWidthBatch
impl Clone for RawAdvanceWidthBatch
Source§fn clone(&self) -> RawAdvanceWidthBatch
fn clone(&self) -> RawAdvanceWidthBatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawAdvanceWidthBatch
impl Debug for RawAdvanceWidthBatch
impl Copy for RawAdvanceWidthBatch
Auto Trait Implementations§
impl Freeze for RawAdvanceWidthBatch
impl RefUnwindSafe for RawAdvanceWidthBatch
impl !Send for RawAdvanceWidthBatch
impl !Sync for RawAdvanceWidthBatch
impl Unpin for RawAdvanceWidthBatch
impl UnsafeUnpin for RawAdvanceWidthBatch
impl UnwindSafe for RawAdvanceWidthBatch
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