pub struct BlockMetadata {
pub is_loop_header: bool,
pub is_loop_exit: bool,
pub loop_depth: u32,
pub predecessors: Vec<BlockId>,
pub dominators: Vec<BlockId>,
pub is_reachable: bool,
pub instruction_locations: HashMap<usize, SourceLocation>,
}Fields§
§is_loop_header: bool§is_loop_exit: bool§loop_depth: u32§predecessors: Vec<BlockId>§dominators: Vec<BlockId>§is_reachable: bool§instruction_locations: HashMap<usize, SourceLocation>Implementations§
Source§impl BlockMetadata
impl BlockMetadata
pub fn get_location(&self, index: usize) -> Option<&SourceLocation>
pub fn set_location(&mut self, index: usize, location: SourceLocation)
Trait Implementations§
Source§impl Clone for BlockMetadata
impl Clone for BlockMetadata
Source§fn clone(&self) -> BlockMetadata
fn clone(&self) -> BlockMetadata
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 moreSource§impl Debug for BlockMetadata
impl Debug for BlockMetadata
Source§impl Default for BlockMetadata
impl Default for BlockMetadata
Source§fn default() -> BlockMetadata
fn default() -> BlockMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockMetadata
impl<'de> Deserialize<'de> for BlockMetadata
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
Auto Trait Implementations§
impl Freeze for BlockMetadata
impl RefUnwindSafe for BlockMetadata
impl Send for BlockMetadata
impl Sync for BlockMetadata
impl Unpin for BlockMetadata
impl UnsafeUnpin for BlockMetadata
impl UnwindSafe for BlockMetadata
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