pub struct ValidationState {
pub operands: TypeStack,
pub controls: Vec<ControlFrame>,
pub locals: Vec<ValType>,
pub local_inits: Vec<bool>,
pub reachability: Reachability,
}Expand description
Function-local validation state.
Fields§
§operands: TypeStack§controls: Vec<ControlFrame>§locals: Vec<ValType>§local_inits: Vec<bool>§reachability: ReachabilityImplementations§
Source§impl ValidationState
impl ValidationState
pub fn new( locals: Vec<ValType>, local_inits: Vec<bool>, result_types: Vec<ValType>, ) -> Self
pub fn current_frame(&self) -> &ControlFrame
pub fn current_frame_mut(&mut self) -> &mut ControlFrame
pub fn push_frame( &mut self, kind: ControlKind, block_type: BlockType, start_types: Vec<ValType>, end_types: Vec<ValType>, )
pub fn pop_frame(&mut self) -> Option<ControlFrame>
pub fn current_label_types(&self, depth: u32) -> Option<&[ValType]>
pub fn enter_unreachable(&mut self)
Trait Implementations§
Source§impl Clone for ValidationState
impl Clone for ValidationState
Source§fn clone(&self) -> ValidationState
fn clone(&self) -> ValidationState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ValidationState
impl Debug for ValidationState
impl Eq for ValidationState
Source§impl PartialEq for ValidationState
impl PartialEq for ValidationState
impl StructuralPartialEq for ValidationState
Auto Trait Implementations§
impl Freeze for ValidationState
impl RefUnwindSafe for ValidationState
impl Send for ValidationState
impl Sync for ValidationState
impl Unpin for ValidationState
impl UnsafeUnpin for ValidationState
impl UnwindSafe for ValidationState
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