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§
source§impl<'data> Clone for ScopeLookupResult<'data>
impl<'data> Clone for ScopeLookupResult<'data>
source§fn clone(&self) -> ScopeLookupResult<'data>
fn clone(&self) -> ScopeLookupResult<'data>
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<'data> Debug for ScopeLookupResult<'data>
impl<'data> Debug for ScopeLookupResult<'data>
source§impl<'data> PartialEq<ScopeLookupResult<'data>> for ScopeLookupResult<'data>
impl<'data> PartialEq<ScopeLookupResult<'data>> for ScopeLookupResult<'data>
source§fn eq(&self, other: &ScopeLookupResult<'data>) -> bool
fn eq(&self, other: &ScopeLookupResult<'data>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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
§impl<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,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.