pub enum NameLookupResult {
Value(MontyObject),
Undefined,
}Expand description
Result of a name lookup from the host.
When the VM encounters an unresolved name, the host provides one of these:
Value(obj): The name resolves to this value (cached in the namespace for future access).Undefined: The name is truly undefined, causingNameError.
Variants§
Value(MontyObject)
The name resolves to this value.
Undefined
The name is undefined — VM will raise NameError.
Trait Implementations§
Source§impl Debug for NameLookupResult
impl Debug for NameLookupResult
Source§impl From<MontyObject> for NameLookupResult
impl From<MontyObject> for NameLookupResult
Source§fn from(value: MontyObject) -> Self
fn from(value: MontyObject) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NameLookupResult
impl RefUnwindSafe for NameLookupResult
impl Send for NameLookupResult
impl Sync for NameLookupResult
impl Unpin for NameLookupResult
impl UnsafeUnpin for NameLookupResult
impl UnwindSafe for NameLookupResult
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