pub struct FieldInit {
pub name: Ident,
pub value: Expr,
pub span: Span,
}Expand description
A field initializer in a struct literal: x: expr.
Fields§
§name: IdentField name.
value: ExprField value expression.
span: SpanSource span.
Trait Implementations§
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