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