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