#[repr(C)]pub struct HookTypeAnnotation<'gc> {
pub metadata: NodeMetadata<'gc>,
pub params: NodeList<'gc>,
pub return_type: &'gc Node<'gc>,
pub rest: Option<&'gc Node<'gc>>,
pub type_parameters: Option<&'gc Node<'gc>>,
}Expand description
The HookTypeAnnotation AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
params: NodeList<'gc>ESTree params property.
return_type: &'gc Node<'gc>ESTree returnType property.
rest: Option<&'gc Node<'gc>>ESTree rest property.
type_parameters: Option<&'gc Node<'gc>>ESTree typeParameters property.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for HookTypeAnnotation<'gc>
impl<'gc> !RefUnwindSafe for HookTypeAnnotation<'gc>
impl<'gc> !Send for HookTypeAnnotation<'gc>
impl<'gc> !Sync for HookTypeAnnotation<'gc>
impl<'gc> !UnwindSafe for HookTypeAnnotation<'gc>
impl<'gc> Unpin for HookTypeAnnotation<'gc>
impl<'gc> UnsafeUnpin for HookTypeAnnotation<'gc>
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