pub struct FieldInit {
pub name: String,
pub value: Expr,
pub span: Span,
}Expand description
one field initializer in a struct literal: name: value.
Fields§
§name: Stringthe field name.
value: Exprthe value expression.
span: Spanthe initializer’s source span (name to value).
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