pub(crate) enum ContextElement {
UseNode,
PathNode(Transform, Option<NonZeroRect>),
}
Variants§
UseNode
The current context element is a use node. Since we can get the bounding box of a use node only once we have converted all elements, we need to fix the transform and units of the stroke/fill after converting the whole tree.
PathNode(Transform, Option<NonZeroRect>)
The current context element is a path node (i.e. only applicable if we draw the marker of a path). Since we already know the bounding box of the path when rendering the markers, we can convert them directly, so we do it while parsing.
Trait Implementations§
Source§impl Clone for ContextElement
impl Clone for ContextElement
Source§fn clone(&self) -> ContextElement
fn clone(&self) -> ContextElement
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextElement
impl Debug for ContextElement
impl Copy for ContextElement
Auto Trait Implementations§
impl Freeze for ContextElement
impl RefUnwindSafe for ContextElement
impl Send for ContextElement
impl Sync for ContextElement
impl Unpin for ContextElement
impl UnwindSafe for ContextElement
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