pub struct KeyVal {
pub key: Primitive,
pub val: Box<dyn Entity>,
}Expand description
Represents a key-value pair where the key is a static string slice
and the value is a boxed entity that implements the AnyEntity trait.
This struct is typically used in the context of reflecting over the properties or members of a container entity, allowing for dynamic access and inspection of its contents.
Fields§
§key: PrimitiveThe key associated with the value in the key-value pair.
val: Box<dyn Entity>The value associated with the key in the key-value pair.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for KeyVal
impl !Send for KeyVal
impl !Sync for KeyVal
impl !UnwindSafe for KeyVal
impl Freeze for KeyVal
impl Unpin for KeyVal
impl UnsafeUnpin for KeyVal
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