pub struct Extras(pub Arc<dyn Any + Send + Sync>);Expand description
Free-form payload slot on a Node (TODO item 8). Wraps an
Arc<dyn Any + Send + Sync> so embedders can attach handler
types, parser state, or anything else without forcing
veks-completion to grow generic parameters or hard dependencies.
Recover the payload via Arc::downcast on the inner Arc.
Tuple Fields§
§0: Arc<dyn Any + Send + Sync>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Extras
impl !UnwindSafe for Extras
impl Freeze for Extras
impl Send for Extras
impl Sync for Extras
impl Unpin for Extras
impl UnsafeUnpin for Extras
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