pub struct ExceptionTag(/* private fields */);
Expand description
An opaque exception tag.
Exception tags are used to denote the identity of an exception for matching by catch-handlers in exception tables.
The index space is arbitrary and is given meaning only by the embedder of Cranelift. Cranelift will carry through these tags from exception tables to the handler metadata produced as output (for use by the embedder’s unwinder).
Implementations§
Source§impl ExceptionTag
impl ExceptionTag
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 ExceptionTag
impl ExceptionTag
Sourcepub fn with_number(n: u32) -> Option<Self>
pub fn with_number(n: u32) -> Option<Self>
Create a new exception tag from its arbitrary index.
This method is for use by the parser.
Trait Implementations§
Source§impl Clone for ExceptionTag
impl Clone for ExceptionTag
Source§fn clone(&self) -> ExceptionTag
fn clone(&self) -> ExceptionTag
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExceptionTag
impl Debug for ExceptionTag
Source§impl<'de> Deserialize<'de> for ExceptionTag
impl<'de> Deserialize<'de> for ExceptionTag
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 ExceptionTag
impl Display for ExceptionTag
Source§impl EntityRef for ExceptionTag
impl EntityRef for ExceptionTag
Source§impl Hash for ExceptionTag
impl Hash for ExceptionTag
Source§impl Ord for ExceptionTag
impl Ord for ExceptionTag
Source§fn cmp(&self, other: &ExceptionTag) -> Ordering
fn cmp(&self, other: &ExceptionTag) -> 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 ExceptionTag
impl PartialEq for ExceptionTag
Source§impl PartialOrd for ExceptionTag
impl PartialOrd for ExceptionTag
Source§impl ReservedValue for ExceptionTag
impl ReservedValue for ExceptionTag
Source§fn reserved_value() -> ExceptionTag
fn reserved_value() -> ExceptionTag
Source§fn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
Source§impl Serialize for ExceptionTag
impl Serialize for ExceptionTag
impl Copy for ExceptionTag
impl Eq for ExceptionTag
impl StructuralPartialEq for ExceptionTag
Auto Trait Implementations§
impl Freeze for ExceptionTag
impl RefUnwindSafe for ExceptionTag
impl Send for ExceptionTag
impl Sync for ExceptionTag
impl Unpin for ExceptionTag
impl UnwindSafe for ExceptionTag
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.