pub struct ModuleItemList { /* private fields */ }Expand description
Module item list AST node.
It contains a list of module items.
More information:
Implementations§
Source§impl ModuleItemList
impl ModuleItemList
Sourcepub const fn items(&self) -> &[ModuleItem]
pub const fn items(&self) -> &[ModuleItem]
Gets the list of module items.
Sourcepub fn exported_names(&self) -> Vec<Sym>
pub fn exported_names(&self) -> Vec<Sym>
Abstract operation ExportedNames.
Sourcepub fn exported_bindings(&self) -> FxHashSet<Sym>
pub fn exported_bindings(&self) -> FxHashSet<Sym>
Abstract operation ExportedBindings.
Sourcepub fn requests(&self) -> IndexSet<Sym, BuildHasherDefault<FxHasher>>
pub fn requests(&self) -> IndexSet<Sym, BuildHasherDefault<FxHasher>>
Operation ModuleRequests.
Gets the list of modules that need to be fetched by the module resolver to link this module.
Sourcepub fn import_entries(&self) -> Vec<ImportEntry>
pub fn import_entries(&self) -> Vec<ImportEntry>
Operation ImportEntries.
Gets the list of import entries of this module.
Sourcepub fn export_entries(&self) -> Vec<ExportEntry>
pub fn export_entries(&self) -> Vec<ExportEntry>
Operation ExportEntries.
Gets the list of export entries of this module.
Trait Implementations§
Source§impl Clone for ModuleItemList
impl Clone for ModuleItemList
Source§fn clone(&self) -> ModuleItemList
fn clone(&self) -> ModuleItemList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleItemList
impl Debug for ModuleItemList
Source§impl Default for ModuleItemList
impl Default for ModuleItemList
Source§fn default() -> ModuleItemList
fn default() -> ModuleItemList
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModuleItemList
impl<'de> Deserialize<'de> for ModuleItemList
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<&'a ModuleItemList> for NodeRef<'a>
impl<'a> From<&'a ModuleItemList> for NodeRef<'a>
Source§fn from(node: &'a ModuleItemList) -> NodeRef<'a>
fn from(node: &'a ModuleItemList) -> NodeRef<'a>
Converts to this type from the input type.
Source§impl<'a> From<&'a mut ModuleItemList> for NodeRefMut<'a>
impl<'a> From<&'a mut ModuleItemList> for NodeRefMut<'a>
Source§fn from(node: &'a mut ModuleItemList) -> NodeRefMut<'a>
fn from(node: &'a mut ModuleItemList) -> NodeRefMut<'a>
Converts to this type from the input type.
Source§impl<T> From<T> for ModuleItemList
impl<T> From<T> for ModuleItemList
Source§impl PartialEq for ModuleItemList
impl PartialEq for ModuleItemList
Source§impl Serialize for ModuleItemList
impl Serialize for ModuleItemList
impl StructuralPartialEq for ModuleItemList
Source§impl VisitWith for ModuleItemList
impl VisitWith for ModuleItemList
Source§fn visit_with<'a, V>(&'a self, visitor: &mut V) -> ControlFlow<V::BreakTy>where
V: Visitor<'a>,
fn visit_with<'a, V>(&'a self, visitor: &mut V) -> ControlFlow<V::BreakTy>where
V: Visitor<'a>,
Visit this node with the provided visitor.
Source§fn visit_with_mut<'a, V>(
&'a mut self,
visitor: &mut V,
) -> ControlFlow<V::BreakTy>where
V: VisitorMut<'a>,
fn visit_with_mut<'a, V>(
&'a mut self,
visitor: &mut V,
) -> ControlFlow<V::BreakTy>where
V: VisitorMut<'a>,
Visit this node with the provided visitor mutably, allowing the visitor to modify private
fields.
Auto Trait Implementations§
impl !RefUnwindSafe for ModuleItemList
impl !Send for ModuleItemList
impl !Sync for ModuleItemList
impl !UnwindSafe for ModuleItemList
impl Freeze for ModuleItemList
impl Unpin for ModuleItemList
impl UnsafeUnpin for ModuleItemList
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