pub struct DSEX2DomTree { /* private fields */ }Expand description
Dominator tree for DSEX2.
Implementations§
Source§impl DSEX2DomTree
impl DSEX2DomTree
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 DSEX2DomTree
impl Clone for DSEX2DomTree
Source§fn clone(&self) -> DSEX2DomTree
fn clone(&self) -> DSEX2DomTree
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 DSEX2DomTree
impl RefUnwindSafe for DSEX2DomTree
impl Send for DSEX2DomTree
impl Sync for DSEX2DomTree
impl Unpin for DSEX2DomTree
impl UnsafeUnpin for DSEX2DomTree
impl UnwindSafe for DSEX2DomTree
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