pub enum ScopeChainKind<'scope, 'db> {
Primitives,
SymModule(SymModule<'db>),
SymAggr(SymAggregate<'db>),
ForAll(Cow<'scope, [SymVariable<'db>]>),
}Expand description
A link the scope resolution chain.
Variants§
Primitives
Introduces the primitives into scope (always present).
SymModule(SymModule<'db>)
Records that we are in the scope of a module.
SymAggr(SymAggregate<'db>)
Records that we are in the scope of a class
ForAll(Cow<'scope, [SymVariable<'db>]>)
Introduces the given symbols into scope.
Trait Implementations§
Source§impl<'scope, 'db> Clone for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> Clone for ScopeChainKind<'scope, 'db>
Source§fn clone(&self) -> ScopeChainKind<'scope, 'db>
fn clone(&self) -> ScopeChainKind<'scope, 'db>
Returns a duplicate 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<'scope, 'db> Debug for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> Debug for ScopeChainKind<'scope, 'db>
Source§impl<'scope, 'db> From<Cow<'scope, [SymVariable<'db>]>> for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> From<Cow<'scope, [SymVariable<'db>]>> for ScopeChainKind<'scope, 'db>
Source§fn from(value: Cow<'scope, [SymVariable<'db>]>) -> Self
fn from(value: Cow<'scope, [SymVariable<'db>]>) -> Self
Converts to this type from the input type.
Source§impl<'scope, 'db> From<SymAggregate<'db>> for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> From<SymAggregate<'db>> for ScopeChainKind<'scope, 'db>
Source§fn from(value: SymAggregate<'db>) -> Self
fn from(value: SymAggregate<'db>) -> Self
Converts to this type from the input type.
Source§impl<'scope, 'db> From<SymModule<'db>> for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> From<SymModule<'db>> for ScopeChainKind<'scope, 'db>
Source§impl<'db> From<SymVariable<'db>> for ScopeChainKind<'_, 'db>
impl<'db> From<SymVariable<'db>> for ScopeChainKind<'_, 'db>
Source§fn from(sym: SymVariable<'db>) -> Self
fn from(sym: SymVariable<'db>) -> Self
Converts to this type from the input type.
Source§impl<'scope, 'db> PartialEq for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> PartialEq for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> Eq for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> StructuralPartialEq for ScopeChainKind<'scope, 'db>
Auto Trait Implementations§
impl<'scope, 'db> Freeze for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> !RefUnwindSafe for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> Send for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> Sync for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> Unpin for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> UnsafeUnpin for ScopeChainKind<'scope, 'db>
impl<'scope, 'db> !UnwindSafe for ScopeChainKind<'scope, 'db>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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