pub enum NameScope {
Local,
NonLocal,
Global,
Free,
}Expand description
An indication where the name must be accessed.
Variants§
Local
The name will be in the local scope.
NonLocal
The name will be located in scope surrounding the current scope.
Global
The name will be in global scope.
Free
The name will be located in any scope between the current scope and the top scope.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NameScope
impl<'de> Deserialize<'de> for NameScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for NameScope
Auto Trait Implementations§
impl Freeze for NameScope
impl RefUnwindSafe for NameScope
impl Send for NameScope
impl Sync for NameScope
impl Unpin for NameScope
impl UnwindSafe for NameScope
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<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