Make doc comments in graph.rs more consistent
This commit is contained in:
parent
21a710658d
commit
95411ef605
1 changed files with 12 additions and 12 deletions
24
src/graph.rs
24
src/graph.rs
|
|
@ -207,10 +207,10 @@ impl Graph {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Modulates nodes that have been deserialized and are still unprocessed.
|
/// Modulates nodes that have been deserialized and are still unprocessed.
|
||||||
//
|
///
|
||||||
// Performs checked arithmetic to the following effect:
|
/// Performs checked arithmetic to the following effect:
|
||||||
// - Stats will saturate at u32::MAX (increment_detached calls)
|
/// - Stats will saturate at `u32::MAX` (`increment_detached` calls)
|
||||||
fn modulate_nodes(&mut self) {
|
fn modulate_nodes(&mut self) {
|
||||||
let in_nodes = self.nodes.clone();
|
let in_nodes = self.nodes.clone();
|
||||||
|
|
||||||
|
|
@ -310,10 +310,10 @@ impl Graph {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Modulates edges that have been deserialized and are still unprocessed.
|
/// Modulates edges that have been deserialized and are still unprocessed.
|
||||||
//
|
///
|
||||||
// This function performs checked arithmetic to the following effect:
|
/// Performs checked arithmetic to the following effect:
|
||||||
// - Stats will saturate at u32::MAX
|
/// - Stats will saturate at `u32::MAX`
|
||||||
fn modulate_edges(&mut self) {
|
fn modulate_edges(&mut self) {
|
||||||
let graph = self.clone();
|
let graph = self.clone();
|
||||||
let iterator = self.nodes.iter_mut();
|
let iterator = self.nodes.iter_mut();
|
||||||
|
|
@ -372,10 +372,10 @@ impl Graph {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Increments detached node statistics for the given node ID
|
/// Increments detached node statistics for the given node ID
|
||||||
//
|
///
|
||||||
// This function performs checked arithmetic to the following effect:
|
/// Performs checked arithmetic to the following effect:
|
||||||
// - Stats will saturate at u32::MAX
|
/// - Stats will saturate at `u32::MAX`
|
||||||
fn increment_detached(&mut self, node_id: &str) {
|
fn increment_detached(&mut self, node_id: &str) {
|
||||||
self.stats
|
self.stats
|
||||||
.detached
|
.detached
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue