pub struct TypeAnnotationField {
pub name: Ident,
pub ty: TypeAnnotation,
pub optional: bool,
pub readonly: bool,
pub rest: bool,
pub method: bool,
}Expand description
Reused for object-type fields and function-type parameters. rest is always
false in object position; readonly is only meaningful for object-type fields
(always false for function/tuple parameters).
Fields§
§name: Ident§ty: TypeAnnotation§optional: bool§readonly: bool§rest: bool§method: boolDeclared with method syntax, m(): T, rather than as a property m: () => T.
Trait Implementations§
Source§impl Clone for TypeAnnotationField
impl Clone for TypeAnnotationField
Source§impl Debug for TypeAnnotationField
impl Debug for TypeAnnotationField
Source§impl PartialEq for TypeAnnotationField
impl PartialEq for TypeAnnotationField
impl StructuralPartialEq for TypeAnnotationField
Auto Trait Implementations§
impl Freeze for TypeAnnotationField
impl RefUnwindSafe for TypeAnnotationField
impl Send for TypeAnnotationField
impl Sync for TypeAnnotationField
impl Unpin for TypeAnnotationField
impl UnsafeUnpin for TypeAnnotationField
impl UnwindSafe for TypeAnnotationField
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