pub enum NodeKind {
Draw(Element),
Group(Vec<SceneNode>),
}Expand description
What a SceneNode holds: drawing content (a leaf primitive) or children (a
container).
Keeping these apart means Element stays a pure “geometry + style” vocabulary — it carries
no Group variant, so the recursive tree lives entirely in SceneNode. New container
semantics (isolated layers, clip groups, …) extend this enum rather than Element.
Variants§
Draw(Element)
A drawable leaf primitive.
Group(Vec<SceneNode>)
A container: children are drawn under the parent transform / clip / compositing scope.
Trait Implementations§
Auto Trait Implementations§
impl Forget for NodeKind
impl Freeze for NodeKind
impl Move for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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