pub struct IdentifierRef<T: Namespace> { /* private fields */ }Implementations§
Source§impl<T: Namespace> IdentifierRef<T>
impl<T: Namespace> IdentifierRef<T>
pub fn new(identifier_original: Istr) -> Selfwhere
T: Default,
pub fn original(&self) -> Istr
pub fn is_ref_to<U: Namespace>(&self, identifier: &Identifier<U>) -> bool
pub fn is_same_ref_as<U: Namespace>( &self, identifier: &IdentifierRef<U>, ) -> bool
pub fn to_runtime_namespace(self) -> IdentifierRef<RuntimeNamespace>
Trait Implementations§
impl<T: Eq + Namespace> Eq for IdentifierRef<T>
impl<T: PartialEq + Namespace> StructuralPartialEq for IdentifierRef<T>
Auto Trait Implementations§
impl<T> Freeze for IdentifierRef<T>where
T: Freeze,
impl<T> RefUnwindSafe for IdentifierRef<T>where
T: RefUnwindSafe,
impl<T> Send for IdentifierRef<T>where
T: Send,
impl<T> Sync for IdentifierRef<T>where
T: Sync,
impl<T> Unpin for IdentifierRef<T>where
T: Unpin,
impl<T> UnsafeUnpin for IdentifierRef<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for IdentifierRef<T>where
T: UnwindSafe,
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,
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.impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T> SpanExt for T
impl<T> SpanExt for T
fn with_span(self, span: impl Into<Span>) -> Spanned<Self>where
Self: Sized,
Source§fn spanned(self, span: impl Into<Span>) -> Spanned<Self>where
Self: Sized,
fn spanned(self, span: impl Into<Span>) -> Spanned<Self>where
Self: Sized,
Same as
Self::with_span, but can avoid name collisionsfn with_dummy_span(self) -> Spanned<Self>where
Self: Sized,
fn into_with_dummy_span<T>(self) -> Spanned<T>where
Self: Into<T>,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.