struct BindingQuery {
source: String,
module: Arc<str>,
module_id: ModuleId,
imported: Option<String>,
member: Option<String>,
}Expand description
A typed module/export/member request; canonical key witnesses remain opaque.
Fields§
§source: StringSource whose import syntax owns this module reference.
module: Arc<str>Cooked module allocation retained and accounted by its source evidence.
module_id: ModuleIdExact value identity from the same resolver used by both query/visited maps.
imported: Option<String>Explicit imported slot, absent for a namespace binding.
member: Option<String>Remaining statically named namespace member.
Implementations§
Source§impl BindingQuery
impl BindingQuery
Sourcefn new<E>(
source: &str,
reference: &ImportReference,
member: Option<&str>,
modules: &mut ModuleInterner,
admit: impl FnOnce(u64) -> Result<(), E>,
) -> Result<Self, E>
fn new<E>( source: &str, reference: &ImportReference, member: Option<&str>, modules: &mut ModuleInterner, admit: impl FnOnce(u64) -> Result<(), E>, ) -> Result<Self, E>
Preserve binding roles and exact module values through one resolver’s interner.
Sourcefn identity(&self) -> (&str, Option<&str>, Option<&str>, ModuleId)
fn identity(&self) -> (&str, Option<&str>, Option<&str>, ModuleId)
Compare short fields and one canonical ID; text stays available for resolution.
Sourcefn retained_bytes(&self) -> u64
fn retained_bytes(&self) -> u64
Count query-owned text and headers; source owners already charge shared module bytes.
Trait Implementations§
Source§impl Clone for BindingQuery
impl Clone for BindingQuery
Source§fn clone(&self) -> BindingQuery
fn clone(&self) -> BindingQuery
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 moreimpl Eq for BindingQuery
Source§impl Ord for BindingQuery
impl Ord for BindingQuery
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BindingQuery
impl PartialEq for BindingQuery
Auto Trait Implementations§
impl Freeze for BindingQuery
impl RefUnwindSafe for BindingQuery
impl Send for BindingQuery
impl Sync for BindingQuery
impl Unpin for BindingQuery
impl UnsafeUnpin for BindingQuery
impl UnwindSafe for BindingQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<'a, T> FromIn<'a, T> for T
impl<'a, T> FromIn<'a, T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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