#[repr(C)]pub struct InferTypeAnnotation<'gc> {
pub metadata: NodeMetadata<'gc>,
pub type_parameter: &'gc Node<'gc>,
}Expand description
The InferTypeAnnotation AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
type_parameter: &'gc Node<'gc>ESTree typeParameter property.
Implementations§
Source§impl<'gc> InferTypeAnnotation<'gc>
impl<'gc> InferTypeAnnotation<'gc>
Sourcepub fn new(metadata: NodeMetadata<'gc>, type_parameter: &'gc Node<'gc>) -> Self
pub fn new(metadata: NodeMetadata<'gc>, type_parameter: &'gc Node<'gc>) -> Self
Build InferTypeAnnotation from its metadata and ESTree.def fields.
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for InferTypeAnnotation<'gc>
impl<'gc> !RefUnwindSafe for InferTypeAnnotation<'gc>
impl<'gc> !Send for InferTypeAnnotation<'gc>
impl<'gc> !Sync for InferTypeAnnotation<'gc>
impl<'gc> !UnwindSafe for InferTypeAnnotation<'gc>
impl<'gc> Unpin for InferTypeAnnotation<'gc>
impl<'gc> UnsafeUnpin for InferTypeAnnotation<'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