pub enum ScopeLookupResult<'data> {
NamedScope(&'data str),
AnonymousScope,
Unknown,
}
Expand description
The Result of a Scope lookup.
Variants
NamedScope(&'data str)
A named function scope.
AnonymousScope
An anonymous function scope for which no name was inferred.
Unknown
The lookup did not result in any scope match.
This most likely means that the offset belongs to the “global” scope.
Trait Implementations
sourceimpl<'data> Clone for ScopeLookupResult<'data>
impl<'data> Clone for ScopeLookupResult<'data>
sourcefn clone(&self) -> ScopeLookupResult<'data>
fn clone(&self) -> ScopeLookupResult<'data>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'data> Debug for ScopeLookupResult<'data>
impl<'data> Debug for ScopeLookupResult<'data>
sourceimpl<'data> PartialEq<ScopeLookupResult<'data>> for ScopeLookupResult<'data>
impl<'data> PartialEq<ScopeLookupResult<'data>> for ScopeLookupResult<'data>
sourcefn eq(&self, other: &ScopeLookupResult<'data>) -> bool
fn eq(&self, other: &ScopeLookupResult<'data>) -> bool
impl<'data> Copy for ScopeLookupResult<'data>
impl<'data> Eq for ScopeLookupResult<'data>
impl<'data> StructuralEq for ScopeLookupResult<'data>
impl<'data> StructuralPartialEq for ScopeLookupResult<'data>
Auto Trait Implementations
impl<'data> RefUnwindSafe for ScopeLookupResult<'data>
impl<'data> Send for ScopeLookupResult<'data>
impl<'data> Sync for ScopeLookupResult<'data>
impl<'data> Unpin for ScopeLookupResult<'data>
impl<'data> UnwindSafe for ScopeLookupResult<'data>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.