struct ScratchLengths {
stack: usize,
cvt: usize,
storage: usize,
twilight: usize,
}Expand description
The working memory a glyph program needs beyond the outline.
Fields§
§stack: usize§cvt: usize§storage: usize§twilight: usizeImplementations§
Source§impl ScratchLengths
impl ScratchLengths
Sourcefn packed_len(&self, points: usize) -> usize
fn packed_len(&self, points: usize) -> usize
Returns the bytes a block needs for carve to
succeed with an outline of points points.
Sourcefn carve<'a>(&self, buf: &'a mut [u8], points: usize) -> Option<HintScratch<'a>>
fn carve<'a>(&self, buf: &'a mut [u8], points: usize) -> Option<HintScratch<'a>>
Splits buf into the slices a glyph program uses.
Returns None if buf is shorter than
packed_len.
Trait Implementations§
Source§impl Clone for ScratchLengths
impl Clone for ScratchLengths
Source§fn clone(&self) -> ScratchLengths
fn clone(&self) -> ScratchLengths
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 moreimpl Copy for ScratchLengths
Source§impl Default for ScratchLengths
impl Default for ScratchLengths
Source§fn default() -> ScratchLengths
fn default() -> ScratchLengths
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScratchLengths
impl RefUnwindSafe for ScratchLengths
impl Send for ScratchLengths
impl Sync for ScratchLengths
impl Unpin for ScratchLengths
impl UnsafeUnpin for ScratchLengths
impl UnwindSafe for ScratchLengths
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