pub struct NamespaceMemberUseFact {
pub object: String,
pub path: String,
pub whole: bool,
}Expand description
A use of a namespace member, found by the semantic pass.
Fields§
§object: StringThe local name of the root binding: an import binding, or a namespace that the module declares, or the key of an inline import type.
path: StringThe dotted member path after the root. Empty for a bare root.
whole: boolThe code hands the value at path on (an argument, an alias, a
spread). Every member below path then counts as used.
Implementations§
Source§impl NamespaceMemberUseFact
impl NamespaceMemberUseFact
Sourcepub fn import_type_object(source: &str) -> String
pub fn import_type_object(source: &str) -> String
The object of a use through the inline import type
import("./x").N.a. An identifier cannot contain (, so the key
never matches a local binding.
Trait Implementations§
Source§impl Clone for NamespaceMemberUseFact
impl Clone for NamespaceMemberUseFact
Source§impl Debug for NamespaceMemberUseFact
impl Debug for NamespaceMemberUseFact
impl<'__de> Decode<'__de> for NamespaceMemberUseFactwhere
'__de:,
impl Encode for NamespaceMemberUseFact
impl Eq for NamespaceMemberUseFact
Source§impl PartialEq for NamespaceMemberUseFact
impl PartialEq for NamespaceMemberUseFact
Source§impl Serialize for NamespaceMemberUseFact
impl Serialize for NamespaceMemberUseFact
impl StructuralPartialEq for NamespaceMemberUseFact
Auto Trait Implementations§
impl Forget for NamespaceMemberUseFact
impl Freeze for NamespaceMemberUseFact
impl RefUnwindSafe for NamespaceMemberUseFact
impl Send for NamespaceMemberUseFact
impl Sync for NamespaceMemberUseFact
impl Unpin for NamespaceMemberUseFact
impl UnsafeUnpin for NamespaceMemberUseFact
impl UnwindSafe for NamespaceMemberUseFact
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> DecodeOwned for Twhere
T: for<'de> Decode<'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.