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