pub struct FieldInit {
pub id: NodeId,
pub name: Ident,
pub value: Option<Expr>,
}Expand description
A field in a struct literal.
Fields§
§id: NodeIdNode id, for what a shorthand field names.
name: IdentThe field name.
value: Option<Expr>The value; None for the shorthand User { id }.
Trait Implementations§
impl StructuralPartialEq for FieldInit
Auto Trait Implementations§
impl Freeze for FieldInit
impl RefUnwindSafe for FieldInit
impl Send for FieldInit
impl Sync for FieldInit
impl Unpin for FieldInit
impl UnsafeUnpin for FieldInit
impl UnwindSafe for FieldInit
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