pub struct StructValue {
pub fields: HashMap<String, TypedValue>,
pub tpe: Struct,
}Fields§
§fields: HashMap<String, TypedValue>§tpe: StructImplementations§
Source§impl StructValue
impl StructValue
pub fn new(tpe: Struct) -> StructValue
pub fn insert_field( &mut self, name: &str, value: TypedValue, ) -> Result<(), Box<InterpError>>
Trait Implementations§
Source§impl Clone for StructValue
impl Clone for StructValue
Source§fn clone(&self) -> StructValue
fn clone(&self) -> StructValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructValue
impl Debug for StructValue
Auto Trait Implementations§
impl !RefUnwindSafe for StructValue
impl !Send for StructValue
impl !Sync for StructValue
impl !UnwindSafe for StructValue
impl Freeze for StructValue
impl Unpin for StructValue
impl UnsafeUnpin for StructValue
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