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