pub struct RISCVX2DepGraph { /* private fields */ }Expand description
Dependency graph for RISCVX2.
Implementations§
Source§impl RISCVX2DepGraph
impl RISCVX2DepGraph
pub fn new(n: usize) -> Self
pub fn add_edge(&mut self, from: usize, to: usize)
pub fn succs(&self, n: usize) -> &[usize]
pub fn preds(&self, n: usize) -> &[usize]
pub fn topo_sort(&self) -> Option<Vec<usize>>
pub fn has_cycle(&self) -> bool
pub fn reachable(&self, start: usize) -> Vec<usize>
pub fn scc(&self) -> Vec<Vec<usize>>
pub fn node_count(&self) -> usize
pub fn edge_count(&self) -> usize
Trait Implementations§
Source§impl Clone for RISCVX2DepGraph
impl Clone for RISCVX2DepGraph
Source§fn clone(&self) -> RISCVX2DepGraph
fn clone(&self) -> RISCVX2DepGraph
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 RISCVX2DepGraph
impl RefUnwindSafe for RISCVX2DepGraph
impl Send for RISCVX2DepGraph
impl Sync for RISCVX2DepGraph
impl Unpin for RISCVX2DepGraph
impl UnsafeUnpin for RISCVX2DepGraph
impl UnwindSafe for RISCVX2DepGraph
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