pub struct FieldDecl {
pub name: Identifier,
pub ty: TypeAnnotation,
pub pos: Pos,
pub span: Span,
}Fields§
§name: IdentifierField or method name.
ty: TypeAnnotationStructured field type parse state.
pos: PosPosition of the field/method name.
span: SpanSpan of the full field declaration (name : Type when present).
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