pub struct Contours { /* private fields */ }Expand description
Every contour a book’s sheet asked for, traced once and kept by asset.
This is the trace stage. Nothing is traced because it is an image.
It is traced because a rule that matched it resolved to
shape-outside: auto, and that is not reachable from where
probing happens: probing takes a book and a loader, and neither
has seen the style tree.
The stage sits above line breaking, because a contour that moved is a measure that moved. It keeps what an earlier run traced, so a sheet edit that leaves the contours where they were decodes nothing.
Implementations§
Source§impl Contours
impl Contours
Sourcepub fn update(
&mut self,
book: &Book,
styles: &StyleTree,
assets: &Assets,
) -> u32
pub fn update( &mut self, book: &Book, styles: &StyleTree, assets: &Assets, ) -> u32
Traces every asset the cascade asks for and this table does not already answer for, and reports how many images it decoded.
A book whose sheet names no contour decodes nothing, and so does one whose contours are all traced already.
Sourcepub fn get(&self, asset: u32) -> Option<&Contour>
pub fn get(&self, asset: u32) -> Option<&Contour>
The contour one asset traced to, and None where it traced to
nothing or was never asked for.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Contours
impl RefUnwindSafe for Contours
impl Send for Contours
impl Sync for Contours
impl Unpin for Contours
impl UnsafeUnpin for Contours
impl UnwindSafe for Contours
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
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.