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