pub struct FieldDecl {
pub doc_comment: Vec<Comment>,
pub modifiers: Vec<Modifier>,
pub ty: Type,
pub declarators: Vec<VariableDeclarator>,
pub semi_span: Span,
}Expand description
A field declaration: [modifiers] type name [= expr] [, name [= expr]] ;.
Fields§
§doc_comment: Vec<Comment>§modifiers: Vec<Modifier>§ty: Type§declarators: Vec<VariableDeclarator>§semi_span: SpanImplementations§
Trait Implementations§
impl Eq for FieldDecl
impl StructuralPartialEq for FieldDecl
Auto Trait Implementations§
impl Freeze for FieldDecl
impl RefUnwindSafe for FieldDecl
impl Send for FieldDecl
impl Sync for FieldDecl
impl Unpin for FieldDecl
impl UnsafeUnpin for FieldDecl
impl UnwindSafe for FieldDecl
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