pub struct DynValue {
pub trait_name: Rc<str>,
pub value: Value,
}Expand description
The contents of a dyn Trait value, which Value::dyn_trait names
and no other reader admits.
Fields§
§trait_name: Rc<str>Fully qualified trait name, such as render.Display.
value: ValueThe concrete value. Its own type is what dynamic dispatch resolves a method against, which is exactly what makes this dispatch dynamic.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DynValue
impl !Send for DynValue
impl !Sync for DynValue
impl !UnwindSafe for DynValue
impl Freeze for DynValue
impl Unpin for DynValue
impl UnsafeUnpin for DynValue
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