pub(crate) struct TraversalState<'a, P: ColorPainter> {
instance: ColrInstance<'a>,
painter: &'a mut P,
stops_buf: SmallVec<ColorStop, MAX_INLINE_COLOR_STOPS>,
nodes_left: u32,
}Fields§
§instance: ColrInstance<'a>§painter: &'a mut P§stops_buf: SmallVec<ColorStop, MAX_INLINE_COLOR_STOPS>§nodes_left: u32Implementations§
Source§impl<'a, P: ColorPainter> TraversalState<'a, P>
impl<'a, P: ColorPainter> TraversalState<'a, P>
pub(crate) fn new(instance: ColrInstance<'a>, painter: &'a mut P) -> Self
pub(crate) fn resolve_paint( &mut self, paint: &Paint<'a>, ) -> Result<ResolvedPaint<'a>, PaintError>
Auto Trait Implementations§
impl<'a, P> Freeze for TraversalState<'a, P>
impl<'a, P> RefUnwindSafe for TraversalState<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for TraversalState<'a, P>where
P: Send,
impl<'a, P> Sync for TraversalState<'a, P>where
P: Sync,
impl<'a, P> Unpin for TraversalState<'a, P>
impl<'a, P> UnsafeUnpin for TraversalState<'a, P>
impl<'a, P> !UnwindSafe for TraversalState<'a, P>
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