pub struct GraphTrace {
pub nodes: Vec<NodeInfo>,
pub connections: Vec<ConnectionInfo>,
}Expand description
A trace of a graph, containing information about nodes and connections.
Fields§
§nodes: Vec<NodeInfo>Information about each node in the graph.
connections: Vec<ConnectionInfo>Information about each connection in the graph.
Implementations§
Source§impl GraphTrace
impl GraphTrace
Sourcepub fn highlight_node(&mut self, node: NodeReflection)
pub fn highlight_node(&mut self, node: NodeReflection)
Emphasizes a node in the trace
Sourcepub fn highlight_connection(
&mut self,
source_node: NodeReflection,
source_output: Option<&'static str>,
target_node: NodeReflection,
target_input: Option<&'static str>,
)
pub fn highlight_connection( &mut self, source_node: NodeReflection, source_output: Option<&'static str>, target_node: NodeReflection, target_input: Option<&'static str>, )
Emphasizes a connection in the trace
Sourcepub fn create_mermaid_graph(&self) -> String
pub fn create_mermaid_graph(&self) -> String
Creates a mermaid graph representing the graph.
Trait Implementations§
Source§impl Clone for GraphTrace
impl Clone for GraphTrace
Source§fn clone(&self) -> GraphTrace
fn clone(&self) -> GraphTrace
Returns a duplicate of the value. Read more
1.0.0§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 GraphTrace
impl RefUnwindSafe for GraphTrace
impl Send for GraphTrace
impl Sync for GraphTrace
impl Unpin for GraphTrace
impl UnwindSafe for GraphTrace
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)