pub struct FileImportBindings {
pub declarations: Vec<ImportDeclarationBindings>,
pub reference_counts: FxHashMap<String, usize>,
}Expand description
The import declarations of a file and the references to their names.
Fields§
§declarations: Vec<ImportDeclarationBindings>The import declarations with bindings, in source order.
reference_counts: FxHashMap<String, usize>For each imported local name, the number of identifier references
with that name in the file. A specifier of an export { ... } list
without a from clause is a reference. The count matches by name, so
a shadowing declaration can only make the count higher.
Trait Implementations§
Source§impl Clone for FileImportBindings
impl Clone for FileImportBindings
Source§impl Debug for FileImportBindings
impl Debug for FileImportBindings
Source§impl Default for FileImportBindings
impl Default for FileImportBindings
impl Eq for FileImportBindings
Source§impl PartialEq for FileImportBindings
impl PartialEq for FileImportBindings
impl StructuralPartialEq for FileImportBindings
Auto Trait Implementations§
impl Forget for FileImportBindings
impl Freeze for FileImportBindings
impl Move for FileImportBindings
impl RefUnwindSafe for FileImportBindings
impl Send for FileImportBindings
impl Sync for FileImportBindings
impl Unpin for FileImportBindings
impl UnsafeUnpin for FileImportBindings
impl UnwindSafe for FileImportBindings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more