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