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