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