enum ValidationStackEntry {
Val(ValType),
Label(LabelInfo),
UnspecifiedValTypes,
}
Variants§
Val(ValType)
A value
Label(LabelInfo)
A label
UnspecifiedValTypes
Special variant to encode that any possible number of ValType
s could be here
Caused by return
and unreachable
, as both can push an arbitrary number of values to the stack.
When this variant is pushed onto the stack, all valtypes until the next lower label are deleted. They are not needed anymore because this variant can expand to all of them.
Trait Implementations§
source§impl Clone for ValidationStackEntry
impl Clone for ValidationStackEntry
source§fn clone(&self) -> ValidationStackEntry
fn clone(&self) -> ValidationStackEntry
Returns a copy 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 ValidationStackEntry
impl Debug for ValidationStackEntry
source§impl PartialEq for ValidationStackEntry
impl PartialEq for ValidationStackEntry
source§fn eq(&self, other: &ValidationStackEntry) -> bool
fn eq(&self, other: &ValidationStackEntry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ValidationStackEntry
impl StructuralPartialEq for ValidationStackEntry
Auto Trait Implementations§
impl RefUnwindSafe for ValidationStackEntry
impl Send for ValidationStackEntry
impl Sync for ValidationStackEntry
impl Unpin for ValidationStackEntry
impl UnwindSafe for ValidationStackEntry
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