pub struct StructVal { /* private fields */ }Expand description
A container for a struct. A struct is a map from name to value.
Implementations§
Source§impl StructVal
impl StructVal
Sourcepub fn with_capacity(cap: usize) -> StructVal
pub fn with_capacity(cap: usize) -> StructVal
Create a new StructVal with capacity for cap amount of fields.
Sourcepub fn get(&self, symbol: Symbol) -> Option<UnsafeVal>
pub fn get(&self, symbol: Symbol) -> Option<UnsafeVal>
Get the value of symbol or None if the value does not exist.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StructVal
impl RefUnwindSafe for StructVal
impl Send for StructVal
impl Sync for StructVal
impl Unpin for StructVal
impl UnwindSafe for StructVal
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