pub struct BasicBlockId {
pub block_type: BasicBlockType,
pub address: Gs2BytecodeAddress,
/* private fields */
}
Expand description
Represents the identifier of a basic block.
Fields§
§block_type: BasicBlockType
The type of the basic block.
address: Gs2BytecodeAddress
The offset of the block
Implementations§
Source§impl BasicBlockId
impl BasicBlockId
Sourcepub fn new(
index: usize,
block_type: BasicBlockType,
offset: Gs2BytecodeAddress,
) -> Self
pub fn new( index: usize, block_type: BasicBlockType, offset: Gs2BytecodeAddress, ) -> Self
Trait Implementations§
Source§impl Clone for BasicBlockId
impl Clone for BasicBlockId
Source§fn clone(&self) -> BasicBlockId
fn clone(&self) -> BasicBlockId
Returns a copy 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<'de> Deserialize<'de> for BasicBlockId
impl<'de> Deserialize<'de> for BasicBlockId
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BasicBlockId
impl Display for BasicBlockId
Source§impl Hash for BasicBlockId
impl Hash for BasicBlockId
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 for BasicBlockId
impl PartialEq for BasicBlockId
Source§impl PartialOrd for BasicBlockId
impl PartialOrd for BasicBlockId
Source§impl Serialize for BasicBlockId
impl Serialize for BasicBlockId
impl 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,
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key
and return true
if they are equal.