pub struct Value { /* private fields */ }Expand description
A cloneable type-erased Send + Sync value.
Cordis TypeScript stores arbitrary JavaScript values. This wrapper is the
Rust equivalent: callers recover the concrete type through Value::downcast.
Implementations§
Source§impl Value
impl Value
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Value
impl !UnwindSafe for Value
impl Freeze for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
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