Enum tvix_eval::compiler::scope::LocalPosition
source · pub enum LocalPosition {
Unknown,
Known(LocalIdx),
Recursive(LocalIdx),
}
Expand description
Represents the current position of an identifier as resolved in a scope.
Variants§
Unknown
Local is not known in this scope.
Known(LocalIdx)
Local is known at the given local index.
Recursive(LocalIdx)
Local is known, but is being accessed recursively within its own initialisation. Depending on context, this is either an error or forcing a closure/thunk.
Auto Trait Implementations§
impl Freeze for LocalPosition
impl RefUnwindSafe for LocalPosition
impl Send for LocalPosition
impl Sync for LocalPosition
impl Unpin for LocalPosition
impl UnwindSafe for LocalPosition
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> 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