pub struct ControlFlowGraph {
pub blocks: Vec<BasicBlock>,
pub edges: Vec<Edge>,
}Expand description
A control-flow graph, as the compiler built it.
Fields§
§blocks: Vec<BasicBlock>Blocks, in the order the compiler numbered them.
edges: Vec<Edge>Edges between blocks, by index into blocks.
Trait Implementations§
Source§impl Clone for ControlFlowGraph
impl Clone for ControlFlowGraph
Source§fn clone(&self) -> ControlFlowGraph
fn clone(&self) -> ControlFlowGraph
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 ControlFlowGraph
impl Debug for ControlFlowGraph
Source§impl Default for ControlFlowGraph
impl Default for ControlFlowGraph
Source§fn default() -> ControlFlowGraph
fn default() -> ControlFlowGraph
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ControlFlowGraph
impl<'de> Deserialize<'de> for ControlFlowGraph
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
impl Eq for ControlFlowGraph
Source§impl PartialEq for ControlFlowGraph
impl PartialEq for ControlFlowGraph
Source§impl Serialize for ControlFlowGraph
impl Serialize for ControlFlowGraph
impl StructuralPartialEq for ControlFlowGraph
Auto Trait Implementations§
impl Freeze for ControlFlowGraph
impl RefUnwindSafe for ControlFlowGraph
impl Send for ControlFlowGraph
impl Sync for ControlFlowGraph
impl Unpin for ControlFlowGraph
impl UnsafeUnpin for ControlFlowGraph
impl UnwindSafe for ControlFlowGraph
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