pub struct SRExtDomTree { /* private fields */ }Expand description
Dominator tree for SRExt.
Implementations§
Source§impl SRExtDomTree
impl SRExtDomTree
pub fn new(n: usize) -> Self
pub fn set_idom(&mut self, node: usize, dom: usize)
pub fn dominates(&self, a: usize, b: usize) -> bool
pub fn children_of(&self, n: usize) -> &[usize]
pub fn depth_of(&self, n: usize) -> usize
pub fn lca(&self, a: usize, b: usize) -> usize
Trait Implementations§
Source§impl Clone for SRExtDomTree
impl Clone for SRExtDomTree
Source§fn clone(&self) -> SRExtDomTree
fn clone(&self) -> SRExtDomTree
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 SRExtDomTree
impl RefUnwindSafe for SRExtDomTree
impl Send for SRExtDomTree
impl Sync for SRExtDomTree
impl Unpin for SRExtDomTree
impl UnsafeUnpin for SRExtDomTree
impl UnwindSafe for SRExtDomTree
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