pub struct Struct<'a> {
pub name: &'a str,
pub fields: Vec<(&'a str, Exp<'a>)>,
}Expand description
A struct literal.
Fields§
§name: &'a strName of the struct type being instantiated.
fields: Vec<(&'a str, Exp<'a>)>The list of fields: (name, value).
Trait Implementations§
impl<'a> Eq for Struct<'a>
impl<'a> StructuralPartialEq for Struct<'a>
Auto Trait Implementations§
impl<'a> Freeze for Struct<'a>
impl<'a> RefUnwindSafe for Struct<'a>
impl<'a> Send for Struct<'a>
impl<'a> Sync for Struct<'a>
impl<'a> Unpin for Struct<'a>
impl<'a> UnwindSafe for Struct<'a>
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