pub struct BasicBlockId { /* private fields */ }Implementations§
Source§impl BasicBlockId
impl BasicBlockId
Sourcepub const MAX_INDEX: usize = 65_535usize
pub const MAX_INDEX: usize = 65_535usize
If Self::CHECKS_MAX_INDEX is true, we’ll assert if trying to
produce a value larger than this in any of the ctors that don’t
have unchecked in their name.
Sourcepub const CHECKS_MAX_INDEX: bool = true
pub const CHECKS_MAX_INDEX: bool = true
Does this index type assert if asked to construct an index larger than MAX_INDEX?
Sourcepub fn from_foreign<F: Idx>(value: F) -> Self
pub fn from_foreign<F: Idx>(value: F) -> Self
Construct this index type from one in a different domain
Sourcepub const fn from_usize_unchecked(value: usize) -> Self
pub const fn from_usize_unchecked(value: usize) -> Self
Construct from a usize without any checks.
Sourcepub const fn from_raw_unchecked(raw: u16) -> Self
pub const fn from_raw_unchecked(raw: u16) -> Self
Construct from the underlying type without any checks.
Sourcepub fn from_usize(value: usize) -> Self
pub fn from_usize(value: usize) -> Self
Construct this index type from a usize.
Sourcepub fn check_index(v: usize)
pub fn check_index(v: usize)
Asserts v <= Self::MAX_INDEX unless Self::CHECKS_MAX_INDEX is false.
Trait Implementations§
Source§impl Add<BasicBlockId> for usize
impl Add<BasicBlockId> for usize
Source§type Output = BasicBlockId
type Output = BasicBlockId
The resulting type after applying the
+ operator.Source§fn add(self, other: BasicBlockId) -> BasicBlockId
fn add(self, other: BasicBlockId) -> BasicBlockId
Performs the
+ operation. Read moreSource§impl Add<usize> for BasicBlockId
impl Add<usize> for BasicBlockId
Source§impl Add for BasicBlockId
impl Add for BasicBlockId
Source§type Output = BasicBlockId
type Output = BasicBlockId
The resulting type after applying the
+ operator.Source§fn add(self, other: BasicBlockId) -> BasicBlockId
fn add(self, other: BasicBlockId) -> BasicBlockId
Performs the
+ operation. Read moreSource§impl AddAssign<usize> for BasicBlockId
impl AddAssign<usize> for BasicBlockId
Source§fn add_assign(&mut self, other: usize)
fn add_assign(&mut self, other: usize)
Performs the
+= operation. Read moreSource§impl AddAssign for BasicBlockId
impl AddAssign for BasicBlockId
Source§fn add_assign(&mut self, other: BasicBlockId)
fn add_assign(&mut self, other: BasicBlockId)
Performs the
+= operation. Read moreSource§impl Clone for BasicBlockId
impl Clone for BasicBlockId
Source§fn clone(&self) -> BasicBlockId
fn clone(&self) -> BasicBlockId
Returns a duplicate of the value. Read more
1.0.0 · 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 BasicBlockId
impl Debug for BasicBlockId
Source§impl Display for BasicBlockId
impl Display for BasicBlockId
Source§impl From<BasicBlockId> for u16
impl From<BasicBlockId> for u16
Source§fn from(v: BasicBlockId) -> u16
fn from(v: BasicBlockId) -> u16
Converts to this type from the input type.
Source§impl From<BasicBlockId> for usize
impl From<BasicBlockId> for usize
Source§fn from(v: BasicBlockId) -> usize
fn from(v: BasicBlockId) -> usize
Converts to this type from the input type.
Source§impl From<u16> for BasicBlockId
impl From<u16> for BasicBlockId
Source§impl From<usize> for BasicBlockId
impl From<usize> for BasicBlockId
Source§impl Hash for BasicBlockId
impl Hash for BasicBlockId
Source§impl Idx for BasicBlockId
impl Idx for BasicBlockId
Source§impl Index<BasicBlockId> for ControlFlowGraph
impl Index<BasicBlockId> for ControlFlowGraph
Source§type Output = BasicBlock
type Output = BasicBlock
The returned type after indexing.
Source§impl IndexMut<BasicBlockId> for ControlFlowGraph
impl IndexMut<BasicBlockId> for ControlFlowGraph
Source§impl Ord for BasicBlockId
impl Ord for BasicBlockId
Source§fn cmp(&self, other: &BasicBlockId) -> Ordering
fn cmp(&self, other: &BasicBlockId) -> Ordering
1.21.0 · 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<BasicBlockId> for usize
impl PartialEq<BasicBlockId> for usize
Source§impl PartialEq<usize> for BasicBlockId
impl PartialEq<usize> for BasicBlockId
Source§impl PartialEq for BasicBlockId
impl PartialEq for BasicBlockId
Source§impl PartialOrd<BasicBlockId> for usize
impl PartialOrd<BasicBlockId> for usize
Source§impl PartialOrd<usize> for BasicBlockId
impl PartialOrd<usize> for BasicBlockId
Source§impl PartialOrd for BasicBlockId
impl PartialOrd for BasicBlockId
Source§impl Rem<usize> for BasicBlockId
impl Rem<usize> for BasicBlockId
Source§impl Sub<BasicBlockId> for usize
impl Sub<BasicBlockId> for usize
Source§type Output = BasicBlockId
type Output = BasicBlockId
The resulting type after applying the
- operator.Source§fn sub(self, other: BasicBlockId) -> BasicBlockId
fn sub(self, other: BasicBlockId) -> BasicBlockId
Performs the
- operation. Read moreSource§impl Sub<usize> for BasicBlockId
impl Sub<usize> for BasicBlockId
Source§impl Sub for BasicBlockId
impl Sub for BasicBlockId
Source§type Output = BasicBlockId
type Output = BasicBlockId
The resulting type after applying the
- operator.Source§fn sub(self, other: BasicBlockId) -> BasicBlockId
fn sub(self, other: BasicBlockId) -> BasicBlockId
Performs the
- operation. Read moreSource§impl SubAssign<usize> for BasicBlockId
impl SubAssign<usize> for BasicBlockId
Source§fn sub_assign(&mut self, other: usize)
fn sub_assign(&mut self, other: usize)
Performs the
-= operation. Read moreSource§impl SubAssign for BasicBlockId
impl SubAssign for BasicBlockId
Source§fn sub_assign(&mut self, other: BasicBlockId)
fn sub_assign(&mut self, other: BasicBlockId)
Performs the
-= operation. Read moreimpl Copy for BasicBlockId
impl Eq for BasicBlockId
impl StructuralPartialEq for BasicBlockId
Auto Trait Implementations§
impl Freeze for BasicBlockId
impl RefUnwindSafe for BasicBlockId
impl Send for BasicBlockId
impl Sync for BasicBlockId
impl Unpin for BasicBlockId
impl UnwindSafe for BasicBlockId
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.