pub struct TableGuards {
pub table_size: Option<u32>,
pub base_byte_offset: Option<u32>,
pub type_reject: Vec<Option<String>>,
}Expand description
#642/#650: one table’s call_indirect guard inputs — see
CallIndirectGuards for the layout contract and soundness argument.
Fields§
§table_size: Option<u32>Compile-time size of this table (entries); None = no sound bound
known (an imported table with growable limits).
base_byte_offset: Option<u32>#650: byte offset of this table’s base within the contiguous R11
region — sum(size(0..N)) * 4, a compile-time constant. None when
any PRECEDING table’s size is unknown (the base is then not a
compile-time constant and the lowering declines).
type_reject: Vec<Option<String>>Per expected-type index: None = closed-world type property VERIFIED
against THIS table; Some(reason) = not verifiable (the lowering
declines).
Trait Implementations§
Source§impl Clone for TableGuards
impl Clone for TableGuards
Source§fn clone(&self) -> TableGuards
fn clone(&self) -> TableGuards
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 TableGuards
impl Debug for TableGuards
Source§impl Default for TableGuards
impl Default for TableGuards
Source§fn default() -> TableGuards
fn default() -> TableGuards
Returns the “default value” for a type. Read more
impl Eq for TableGuards
Source§impl PartialEq for TableGuards
impl PartialEq for TableGuards
Source§fn eq(&self, other: &TableGuards) -> bool
fn eq(&self, other: &TableGuards) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableGuards
Auto Trait Implementations§
impl Freeze for TableGuards
impl RefUnwindSafe for TableGuards
impl Send for TableGuards
impl Sync for TableGuards
impl Unpin for TableGuards
impl UnsafeUnpin for TableGuards
impl UnwindSafe for TableGuards
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.