#[non_exhaustive]pub enum OnUnbound {
Undefined,
Error,
}Expand description
What a load of a variable the context does not bind does.
use predicator_rs::OnUnbound;
assert_eq!(OnUnbound::default(), OnUnbound::Undefined);The enum is non_exhaustive: a later version may add a policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Undefined
The load pushes undefined, and the evaluation fails with an
UndefinedVariableError only when
undefined is its answer, or when an instruction refuses that
undefined as an operand. The default.
Error
The load itself fails the evaluation with an
UndefinedVariableError.
Trait Implementations§
impl Copy for OnUnbound
impl Eq for OnUnbound
impl StructuralPartialEq for OnUnbound
Auto Trait Implementations§
impl Forget for OnUnbound
impl Freeze for OnUnbound
impl Move for OnUnbound
impl RefUnwindSafe for OnUnbound
impl Send for OnUnbound
impl Sync for OnUnbound
impl Unpin for OnUnbound
impl UnsafeUnpin for OnUnbound
impl UnwindSafe for OnUnbound
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