pub struct FieldInit<P: Phase = Raw> {
pub name: Spanned<FieldName>,
pub value: Expr<P>,
}Expand description
A field initializer in a constructor call.
Fields§
§name: Spanned<FieldName>§value: Expr<P>Trait Implementations§
Source§impl FormatEquivalent for FieldInit
impl FormatEquivalent for FieldInit
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl<P> Freeze for FieldInit<P>
impl<P> RefUnwindSafe for FieldInit<P>
impl<P> Send for FieldInit<P>
impl<P> Sync for FieldInit<P>
impl<P> Unpin for FieldInit<P>
impl<P> UnsafeUnpin for FieldInit<P>
impl<P> UnwindSafe for FieldInit<P>
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