pub struct Record {
pub name: String,
pub fields: RefCell<Vec<(String, Value)>>,
/* private fields */
}Expand description
A value of a struct the program declares itself: its fields, which methods can change.
Fields§
§name: StringThe struct’s name.
fields: RefCell<Vec<(String, Value)>>Its fields, in the order written; a tuple struct’s are named 0, 1, …
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Record
impl !RefUnwindSafe for Record
impl !Send for Record
impl !Sync for Record
impl !UnwindSafe for Record
impl Unpin for Record
impl UnsafeUnpin for Record
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