pub struct EvmIrBlockId(/* private fields */);Expand description
A unique identifier for a basic block in EVM IR.
Implementations§
Source§impl EvmIrBlockId
impl EvmIrBlockId
Sourcepub const CHECKS_MAX_INDEX: bool = true
pub const CHECKS_MAX_INDEX: bool = true
Whether this index type performs bounds checking.
Sourcepub fn from_foreign<F: Idx>(value: F) -> Self
pub fn from_foreign<F: Idx>(value: F) -> Self
Convert an index from another index type.
Sourcepub const unsafe fn from_usize_unchecked(value: usize) -> Self
pub const unsafe fn from_usize_unchecked(value: usize) -> Self
Create an index from a usize without bounds checking.
§SAFETY
The caller must ensure value < (u32::MAX as usize).
Sourcepub const unsafe fn from_raw_unchecked(raw: u32) -> Self
pub const unsafe fn from_raw_unchecked(raw: u32) -> Self
Create an index from a raw u32 without bounds checking.
§SAFETY
The caller must ensure the value is not u32::MAX.
Sourcepub const fn from_usize(value: usize) -> Self
pub const fn from_usize(value: usize) -> Self
Source§impl EvmIrBlockId
impl EvmIrBlockId
Trait Implementations§
Source§impl Add for EvmIrBlockId
impl Add for EvmIrBlockId
Source§type Output = EvmIrBlockId
type Output = EvmIrBlockId
The resulting type after applying the
+ operator.Source§fn add(self, other: EvmIrBlockId) -> EvmIrBlockId
fn add(self, other: EvmIrBlockId) -> EvmIrBlockId
Performs the
+ operation. Read moreSource§impl Add<EvmIrBlockId> for usize
impl Add<EvmIrBlockId> for usize
Source§type Output = EvmIrBlockId
type Output = EvmIrBlockId
The resulting type after applying the
+ operator.Source§fn add(self, other: EvmIrBlockId) -> EvmIrBlockId
fn add(self, other: EvmIrBlockId) -> EvmIrBlockId
Performs the
+ operation. Read moreSource§impl Add<usize> for EvmIrBlockId
impl Add<usize> for EvmIrBlockId
Source§impl AddAssign for EvmIrBlockId
impl AddAssign for EvmIrBlockId
Source§fn add_assign(&mut self, other: EvmIrBlockId)
fn add_assign(&mut self, other: EvmIrBlockId)
Performs the
+= operation. Read moreSource§impl AddAssign<usize> for EvmIrBlockId
impl AddAssign<usize> for EvmIrBlockId
Source§fn add_assign(&mut self, other: usize)
fn add_assign(&mut self, other: usize)
Performs the
+= operation. Read moreSource§impl Clone for EvmIrBlockId
impl Clone for EvmIrBlockId
Source§fn clone(&self) -> EvmIrBlockId
fn clone(&self) -> EvmIrBlockId
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 moreimpl Copy for EvmIrBlockId
Source§impl Debug for EvmIrBlockId
impl Debug for EvmIrBlockId
impl Eq for EvmIrBlockId
Source§impl From<EvmIrBlockId> for usize
impl From<EvmIrBlockId> for usize
Source§fn from(v: EvmIrBlockId) -> usize
fn from(v: EvmIrBlockId) -> usize
Converts to this type from the input type.
Source§impl From<usize> for EvmIrBlockId
impl From<usize> for EvmIrBlockId
Source§impl Hash for EvmIrBlockId
impl Hash for EvmIrBlockId
Source§impl Idx for EvmIrBlockId
impl Idx for EvmIrBlockId
Source§impl Ord for EvmIrBlockId
impl Ord for EvmIrBlockId
Source§fn cmp(&self, other: &EvmIrBlockId) -> Ordering
fn cmp(&self, other: &EvmIrBlockId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EvmIrBlockId
impl PartialEq for EvmIrBlockId
Source§fn eq(&self, other: &EvmIrBlockId) -> bool
fn eq(&self, other: &EvmIrBlockId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<EvmIrBlockId> for usize
impl PartialEq<EvmIrBlockId> for usize
Source§fn eq(&self, other: &EvmIrBlockId) -> bool
fn eq(&self, other: &EvmIrBlockId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<usize> for EvmIrBlockId
impl PartialEq<usize> for EvmIrBlockId
Source§impl PartialOrd for EvmIrBlockId
impl PartialOrd for EvmIrBlockId
Source§impl PartialOrd<EvmIrBlockId> for usize
impl PartialOrd<EvmIrBlockId> for usize
Source§impl PartialOrd<usize> for EvmIrBlockId
impl PartialOrd<usize> for EvmIrBlockId
Source§impl Rem<usize> for EvmIrBlockId
impl Rem<usize> for EvmIrBlockId
impl StructuralPartialEq for EvmIrBlockId
Source§impl Sub for EvmIrBlockId
impl Sub for EvmIrBlockId
Source§type Output = EvmIrBlockId
type Output = EvmIrBlockId
The resulting type after applying the
- operator.Source§fn sub(self, other: EvmIrBlockId) -> EvmIrBlockId
fn sub(self, other: EvmIrBlockId) -> EvmIrBlockId
Performs the
- operation. Read moreSource§impl Sub<EvmIrBlockId> for usize
impl Sub<EvmIrBlockId> for usize
Source§type Output = EvmIrBlockId
type Output = EvmIrBlockId
The resulting type after applying the
- operator.Source§fn sub(self, other: EvmIrBlockId) -> EvmIrBlockId
fn sub(self, other: EvmIrBlockId) -> EvmIrBlockId
Performs the
- operation. Read moreSource§impl Sub<usize> for EvmIrBlockId
impl Sub<usize> for EvmIrBlockId
Source§impl SubAssign for EvmIrBlockId
impl SubAssign for EvmIrBlockId
Source§fn sub_assign(&mut self, other: EvmIrBlockId)
fn sub_assign(&mut self, other: EvmIrBlockId)
Performs the
-= operation. Read moreSource§impl SubAssign<usize> for EvmIrBlockId
impl SubAssign<usize> for EvmIrBlockId
Source§fn sub_assign(&mut self, other: usize)
fn sub_assign(&mut self, other: usize)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for EvmIrBlockId
impl RefUnwindSafe for EvmIrBlockId
impl Send for EvmIrBlockId
impl Sync for EvmIrBlockId
impl Unpin for EvmIrBlockId
impl UnsafeUnpin for EvmIrBlockId
impl UnwindSafe for EvmIrBlockId
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<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<I, T> IdxSliceIndex<I, T> for Iwhere
I: Idx,
impl<I, T> IdxSliceIndex<I, T> for Iwhere
I: Idx,
type Output = T
fn get( self, slice: &IndexSlice<I, [T]>, ) -> Option<&<I as IdxSliceIndex<I, T>>::Output>
fn get_mut( self, slice: &mut IndexSlice<I, [T]>, ) -> Option<&mut <I as IdxSliceIndex<I, T>>::Output>
fn index( self, slice: &IndexSlice<I, [T]>, ) -> &<I as IdxSliceIndex<I, T>>::Output
fn index_mut( self, slice: &mut IndexSlice<I, [T]>, ) -> &mut <I as IdxSliceIndex<I, T>>::Output
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more