pub struct GraphMetrics<const MAX_NODES: usize, const MAX_EDGES: usize> { /* private fields */ }Expand description
Per graph telemetry metrics.
Implementations§
Source§impl<const MAX_NODES: usize, const MAX_EDGES: usize> GraphMetrics<MAX_NODES, MAX_EDGES>
impl<const MAX_NODES: usize, const MAX_EDGES: usize> GraphMetrics<MAX_NODES, MAX_EDGES>
Sourcepub fn nodes(&self) -> &[NodeMetrics; MAX_NODES]
pub fn nodes(&self) -> &[NodeMetrics; MAX_NODES]
Return the metrics for all nodes.
Sourcepub fn edges(&self) -> &[EdgeMetrics; MAX_EDGES]
pub fn edges(&self) -> &[EdgeMetrics; MAX_EDGES]
Return the metrics for all edges.
Source§impl<const MAX_NODES: usize, const MAX_EDGES: usize> GraphMetrics<MAX_NODES, MAX_EDGES>
impl<const MAX_NODES: usize, const MAX_EDGES: usize> GraphMetrics<MAX_NODES, MAX_EDGES>
Trait Implementations§
Source§impl<const MAX_NODES: usize, const MAX_EDGES: usize> Clone for GraphMetrics<MAX_NODES, MAX_EDGES>
impl<const MAX_NODES: usize, const MAX_EDGES: usize> Clone for GraphMetrics<MAX_NODES, MAX_EDGES>
Source§fn clone(&self) -> GraphMetrics<MAX_NODES, MAX_EDGES>
fn clone(&self) -> GraphMetrics<MAX_NODES, MAX_EDGES>
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 moreSource§impl<const MAX_NODES: usize, const MAX_EDGES: usize> Debug for GraphMetrics<MAX_NODES, MAX_EDGES>
impl<const MAX_NODES: usize, const MAX_EDGES: usize> Debug for GraphMetrics<MAX_NODES, MAX_EDGES>
impl<const MAX_NODES: usize, const MAX_EDGES: usize> Copy for GraphMetrics<MAX_NODES, MAX_EDGES>
Auto Trait Implementations§
impl<const MAX_NODES: usize, const MAX_EDGES: usize> Freeze for GraphMetrics<MAX_NODES, MAX_EDGES>
impl<const MAX_NODES: usize, const MAX_EDGES: usize> RefUnwindSafe for GraphMetrics<MAX_NODES, MAX_EDGES>
impl<const MAX_NODES: usize, const MAX_EDGES: usize> Send for GraphMetrics<MAX_NODES, MAX_EDGES>
impl<const MAX_NODES: usize, const MAX_EDGES: usize> Sync for GraphMetrics<MAX_NODES, MAX_EDGES>
impl<const MAX_NODES: usize, const MAX_EDGES: usize> Unpin for GraphMetrics<MAX_NODES, MAX_EDGES>
impl<const MAX_NODES: usize, const MAX_EDGES: usize> UnsafeUnpin for GraphMetrics<MAX_NODES, MAX_EDGES>
impl<const MAX_NODES: usize, const MAX_EDGES: usize> UnwindSafe for GraphMetrics<MAX_NODES, MAX_EDGES>
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