pub struct ExceptionTable(/* private fields */);
Expand description
An opaque reference to an exception table.
ExceptionTable
s are used for describing exception catch handlers on
try_call
and try_call_indirect
instructions.
Implementations§
Source§impl ExceptionTable
impl ExceptionTable
Sourcepub fn as_bits(self) -> u32
pub fn as_bits(self) -> u32
Return the raw bit encoding for this instance.
Warning: the raw bit encoding is opaque and has no
guaranteed correspondence to the entity’s index. It encodes the
entire state of this index value: either a valid index or an
invalid-index sentinel. The value returned by this method should
only be passed to from_bits
.
Sourcepub fn from_bits(x: u32) -> Self
pub fn from_bits(x: u32) -> Self
Create a new instance from the raw bit encoding.
Warning: the raw bit encoding is opaque and has no
guaranteed correspondence to the entity’s index. It encodes the
entire state of this index value: either a valid index or an
invalid-index sentinel. The value returned by this method should
only be given bits from as_bits
.
Source§impl ExceptionTable
impl ExceptionTable
Sourcepub fn with_number(n: u32) -> Option<Self>
pub fn with_number(n: u32) -> Option<Self>
Create a new exception table reference from its number.
This method is for use by the parser.
Trait Implementations§
Source§impl Clone for ExceptionTable
impl Clone for ExceptionTable
Source§fn clone(&self) -> ExceptionTable
fn clone(&self) -> ExceptionTable
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExceptionTable
impl Debug for ExceptionTable
Source§impl<'de> Deserialize<'de> for ExceptionTable
impl<'de> Deserialize<'de> for ExceptionTable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for ExceptionTable
impl Display for ExceptionTable
Source§impl EntityRef for ExceptionTable
impl EntityRef for ExceptionTable
Source§impl From<ExceptionTable> for AnyEntity
impl From<ExceptionTable> for AnyEntity
Source§fn from(r: ExceptionTable) -> Self
fn from(r: ExceptionTable) -> Self
Source§impl Hash for ExceptionTable
impl Hash for ExceptionTable
Source§impl Ord for ExceptionTable
impl Ord for ExceptionTable
Source§fn cmp(&self, other: &ExceptionTable) -> Ordering
fn cmp(&self, other: &ExceptionTable) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ExceptionTable
impl PartialEq for ExceptionTable
Source§impl PartialOrd for ExceptionTable
impl PartialOrd for ExceptionTable
Source§impl ReservedValue for ExceptionTable
impl ReservedValue for ExceptionTable
Source§fn reserved_value() -> ExceptionTable
fn reserved_value() -> ExceptionTable
Source§fn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
Source§impl Serialize for ExceptionTable
impl Serialize for ExceptionTable
impl Copy for ExceptionTable
impl Eq for ExceptionTable
impl StructuralPartialEq for ExceptionTable
Auto Trait Implementations§
impl Freeze for ExceptionTable
impl RefUnwindSafe for ExceptionTable
impl Send for ExceptionTable
impl Sync for ExceptionTable
impl Unpin for ExceptionTable
impl UnwindSafe for ExceptionTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.