pub enum TypeSafety {
None,
Lambda,
LambdaAndVar,
Full,
}Variants§
None
No type safety checks are performed.
Lambda
When trying to execute a lambda, make sure that the popped value is a lambda.
LambdaAndVar
Include all checks from TypeSafety::Lambda, and make sure that when storing or loading a variable, the popped value is a variable name.
Full
Include all checks from TypeSafety::LambdaAndVar, and ensure that only integers can be used for arithmetic operations.
Trait Implementations§
Source§impl Clone for TypeSafety
impl Clone for TypeSafety
Source§fn clone(&self) -> TypeSafety
fn clone(&self) -> TypeSafety
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeSafety
impl Debug for TypeSafety
Source§impl PartialEq for TypeSafety
impl PartialEq for TypeSafety
Source§impl ValueEnum for TypeSafety
impl ValueEnum for TypeSafety
impl Copy for TypeSafety
impl Eq for TypeSafety
impl StructuralPartialEq for TypeSafety
Auto Trait Implementations§
impl Freeze for TypeSafety
impl RefUnwindSafe for TypeSafety
impl Send for TypeSafety
impl Sync for TypeSafety
impl Unpin for TypeSafety
impl UnwindSafe for TypeSafety
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