pub struct NamespaceEscape {
pub consumer: FileId,
pub import_span: Span,
pub local_name: String,
pub target: FileId,
pub reason: NamespaceEscapeReason,
pub read_members: Vec<String>,
}Expand description
One namespace binding that gets the full export credit of target.
Fields§
§consumer: FileIdThe file that declares the binding.
import_span: SpanThe span of the import that declares the binding.
local_name: StringThe local name of the binding.
target: FileIdThe module whose exports get the full credit.
reason: NamespaceEscapeReasonWhy the binding gets the full credit.
read_members: Vec<String>The members that the code also reads by name through the binding. The full credit does not hide these members.
Trait Implementations§
Source§impl Clone for NamespaceEscape
impl Clone for NamespaceEscape
Source§impl Debug for NamespaceEscape
impl Debug for NamespaceEscape
Source§impl<'de> Deserialize<'de> for NamespaceEscape
impl<'de> Deserialize<'de> for NamespaceEscape
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
impl Eq for NamespaceEscape
Source§impl PartialEq for NamespaceEscape
impl PartialEq for NamespaceEscape
Source§impl Serialize for NamespaceEscape
impl Serialize for NamespaceEscape
impl StructuralPartialEq for NamespaceEscape
Auto Trait Implementations§
impl Forget for NamespaceEscape
impl Freeze for NamespaceEscape
impl Move for NamespaceEscape
impl RefUnwindSafe for NamespaceEscape
impl Send for NamespaceEscape
impl Sync for NamespaceEscape
impl Unpin for NamespaceEscape
impl UnsafeUnpin for NamespaceEscape
impl UnwindSafe for NamespaceEscape
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
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