#[non_exhaustive]pub enum Node {
Path(PathNode),
Group(Group),
Image(ImageRef),
SoftMask {
mask: Box<Node>,
mask_kind: MaskKind,
content: Box<Node>,
},
}Expand description
One node in the scene tree.
Marked #[non_exhaustive] so future variants (text, filters) can
be added without breaking downstream match arms.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Path(PathNode)
Group(Group)
Image(ImageRef)
An embedded raster image painted into vector space.
SoftMask
A soft-mask composite. The mask subtree is rasterised and
converted to a per-pixel alpha multiplier (luminance or alpha,
per MaskKind), then applied to the rasterised content
subtree. Mirrors SVG <mask> and PDF SMask (subtype Luminosity
vs. Alpha).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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