pub struct SyntaxContextId(/* private fields */);Expand description
Interned SyntaxContextData.
Implementations§
Source§impl SyntaxContextId
impl SyntaxContextId
pub fn remove_root_edition(&mut self)
Sourcepub const fn root(edition: Edition) -> Self
pub const fn root(edition: Edition) -> Self
The root context, which is the parent of all other contexts. All [FileId]s have this context.
pub fn is_root(self) -> bool
Trait Implementations§
Source§impl Clone for SyntaxContextId
impl Clone for SyntaxContextId
Source§fn clone(&self) -> SyntaxContextId
fn clone(&self) -> SyntaxContextId
Returns a copy of the value. Read more
1.0.0 · 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 SyntaxContextId
impl Debug for SyntaxContextId
Source§impl Display for SyntaxContextId
impl Display for SyntaxContextId
Source§impl Hash for SyntaxContextId
impl Hash for SyntaxContextId
Source§impl InternKey for SyntaxContextId
impl InternKey for SyntaxContextId
Source§fn from_intern_id(v: InternId) -> Self
fn from_intern_id(v: InternId) -> Self
Create an instance of the intern-key from a
u32 value.Source§fn as_intern_id(&self) -> InternId
fn as_intern_id(&self) -> InternId
Extract the
u32 with which the intern-key was created.Source§impl Ord for SyntaxContextId
impl Ord for SyntaxContextId
Source§fn cmp(&self, other: &SyntaxContextId) -> Ordering
fn cmp(&self, other: &SyntaxContextId) -> Ordering
1.21.0 · 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 SyntaxContextId
impl PartialEq for SyntaxContextId
Source§impl PartialOrd for SyntaxContextId
impl PartialOrd for SyntaxContextId
impl Copy for SyntaxContextId
impl Eq for SyntaxContextId
impl StructuralPartialEq for SyntaxContextId
Auto Trait Implementations§
impl Freeze for SyntaxContextId
impl RefUnwindSafe for SyntaxContextId
impl Send for SyntaxContextId
impl Sync for SyntaxContextId
impl Unpin for SyntaxContextId
impl UnwindSafe for SyntaxContextId
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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