Struct ForeignValue
pub struct ForeignValue(pub Arc<dyn Any + Send + Sync>);Expand description
The opaque payload carried by NodeValue::Foreign: an owned, thread-safe
Any a binding downcasts back to its host value. Arc keeps NodeValue
Clone (the SPPF walk clones freely) and Send + Sync (no
core public item is !Send/!Sync; an owned PyObject/JS handle is itself
Send + Sync). Manual Debug — dyn Any is not Debug.
Tuple Fields§
§0: Arc<dyn Any + Send + Sync>Implementations§
Trait Implementations§
§impl Clone for ForeignValue
impl Clone for ForeignValue
Auto Trait Implementations§
impl !RefUnwindSafe for ForeignValue
impl !UnwindSafe for ForeignValue
impl Freeze for ForeignValue
impl Send for ForeignValue
impl Sync for ForeignValue
impl Unpin for ForeignValue
impl UnsafeUnpin for ForeignValue
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