pub struct Graph {
pub nodes: Vec<Node>,
}Fields§
§nodes: Vec<Node>Implementations§
Source§impl Graph
impl Graph
pub fn new() -> Graph
pub fn add(&mut self, len: usize, add_node: impl AddGraph) -> Node
pub fn add_leaf(&mut self, len: usize) -> Node
pub fn add_node(&mut self, len: usize, lhs_idx: isize, rhs_idx: isize) -> Node
pub fn cache_traces(&self) -> Vec<CacheTrace>
pub fn trace_cache_path(&self, trace_at: &Node) -> Option<Vec<Node>>
pub fn is_path_optimizable(&self, check_at: &Node) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Graph
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
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