pub struct UseDefGraph {
pub stmt_use_def_chains: IndexVec<StatementId, BitSet<StatementId>>,
pub terminator_use_def_chains: IndexVec<BasicBlockId, BitSet<StatementId>>,
pub assignments: IndexVec<VariableId, BitSet<StatementId>>,
}Fields§
§stmt_use_def_chains: IndexVec<StatementId, BitSet<StatementId>>§terminator_use_def_chains: IndexVec<BasicBlockId, BitSet<StatementId>>§assignments: IndexVec<VariableId, BitSet<StatementId>>Implementations§
Source§impl UseDefGraph
impl UseDefGraph
pub fn new(mir: &Mir, cfg: &ControlFlowGraph) -> Self
pub fn stmt_count(&self) -> u32
pub fn len_stmd_idx(&self) -> StatementId
Trait Implementations§
Source§impl Clone for UseDefGraph
impl Clone for UseDefGraph
Source§fn clone(&self) -> UseDefGraph
fn clone(&self) -> UseDefGraph
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 moreAuto Trait Implementations§
impl Freeze for UseDefGraph
impl RefUnwindSafe for UseDefGraph
impl Send for UseDefGraph
impl Sync for UseDefGraph
impl Unpin for UseDefGraph
impl UnwindSafe for UseDefGraph
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