pub enum BoxKind {
Container,
Component(Arc<dyn Any + Send + Sync>),
Ghost(Arc<dyn Any + Send + Sync>),
}Expand description
Discriminates the source component without coupling the engine to its concrete types.
Variants§
Container
Generic container — no custom paint, only box decorations.
Component(Arc<dyn Any + Send + Sync>)
Component-backed leaf or container. Holds an opaque payload that the dispatcher knows how to handle.
Ghost(Arc<dyn Any + Send + Sync>)
Temporal ghost for motion-blur / trail effects. Painted exactly like
Component (same payload, same dispatcher dispatch) but excluded from
the hit-map so the studio never selects a ghost node.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BoxKind
impl !UnwindSafe for BoxKind
impl Freeze for BoxKind
impl Send for BoxKind
impl Sync for BoxKind
impl Unpin for BoxKind
impl UnsafeUnpin for BoxKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more