pub struct AdvanceWidthBatch<'a> {
infos: &'a [GlyphInfo],
positions: &'a mut [GlyphPosition],
}Expand description
Safe batch view for glyph id / horizontal-advance updates.
Fields§
§infos: &'a [GlyphInfo]§positions: &'a mut [GlyphPosition]Implementations§
Source§impl<'a> AdvanceWidthBatch<'a>
impl<'a> AdvanceWidthBatch<'a>
pub(crate) fn new(buffer: &'a mut hb_buffer_t) -> Self
Sourcepub fn into_raw(self) -> RawAdvanceWidthBatch
pub fn into_raw(self) -> RawAdvanceWidthBatch
Returns a raw C-style view over this batch.
Trait Implementations§
Source§impl<'a> IntoIterator for AdvanceWidthBatch<'a>
impl<'a> IntoIterator for AdvanceWidthBatch<'a>
Auto Trait Implementations§
impl<'a> Freeze for AdvanceWidthBatch<'a>
impl<'a> RefUnwindSafe for AdvanceWidthBatch<'a>
impl<'a> Send for AdvanceWidthBatch<'a>
impl<'a> Sync for AdvanceWidthBatch<'a>
impl<'a> Unpin for AdvanceWidthBatch<'a>
impl<'a> UnsafeUnpin for AdvanceWidthBatch<'a>
impl<'a> !UnwindSafe for AdvanceWidthBatch<'a>
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