pub struct NamespaceAccess {
pub package: SmolStr,
pub package_token: SyntaxToken<RLanguage>,
pub internal: bool,
pub name: SmolStr,
pub name_token: SyntaxToken<RLanguage>,
}Expand description
A resolved namespace access (pkg::name / pkg:::name), as extracted from a
BinaryExpr.
Fields§
§package: SmolStr§package_token: SyntaxToken<RLanguage>§internal: booltrue for the internal ::: operator, false for ::.
name: SmolStr§name_token: SyntaxToken<RLanguage>Trait Implementations§
Source§impl Clone for NamespaceAccess
impl Clone for NamespaceAccess
Source§fn clone(&self) -> NamespaceAccess
fn clone(&self) -> NamespaceAccess
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 NamespaceAccess
impl Debug for NamespaceAccess
impl Eq for NamespaceAccess
Source§impl PartialEq for NamespaceAccess
impl PartialEq for NamespaceAccess
impl StructuralPartialEq for NamespaceAccess
Auto Trait Implementations§
impl !RefUnwindSafe for NamespaceAccess
impl !Send for NamespaceAccess
impl !Sync for NamespaceAccess
impl !UnwindSafe for NamespaceAccess
impl Freeze for NamespaceAccess
impl Unpin for NamespaceAccess
impl UnsafeUnpin for NamespaceAccess
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