pub struct TypedFieldInit {
pub name: String,
pub value: TypedExpr,
pub span: Span,
}Expand description
one typed field initializer in a struct literal: name: value. mirror of
ast::FieldInit.
Fields§
§name: Stringthe field name.
value: TypedExprthe typed value expression.
span: Spanthe initializer’s source span (name to value).
Trait Implementations§
Source§impl Clone for TypedFieldInit
impl Clone for TypedFieldInit
Source§fn clone(&self) -> TypedFieldInit
fn clone(&self) -> TypedFieldInit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypedFieldInit
impl Debug for TypedFieldInit
Source§impl PartialEq for TypedFieldInit
impl PartialEq for TypedFieldInit
Source§fn eq(&self, other: &TypedFieldInit) -> bool
fn eq(&self, other: &TypedFieldInit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypedFieldInit
Auto Trait Implementations§
impl Freeze for TypedFieldInit
impl RefUnwindSafe for TypedFieldInit
impl Send for TypedFieldInit
impl Sync for TypedFieldInit
impl Unpin for TypedFieldInit
impl UnsafeUnpin for TypedFieldInit
impl UnwindSafe for TypedFieldInit
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