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