Skip to content

Commit 889b325

Browse files
committed
---
yaml --- r: 234394 b: refs/heads/tmp c: 4f5267d h: refs/heads/master v: v3
1 parent 7cf7bbc commit 889b325

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: d2e13e822a73e0ea46ae9e21afdd3155fc997f6d
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 004d70212ab40b35bcbe87df272b91fde10513b2
28+
refs/heads/tmp: 4f5267dba31fdc49e436c50009fe33a80f21d477
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: ab792abf1fcc28afbd315426213f6428da25c085
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/src/librustc_data_structures/graph/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,21 @@ impl<N:Debug,E:Debug> Graph<N,E> {
119119
&self.nodes
120120
}
121121

122+
#[inline]
123+
pub fn len_nodes(&self) -> usize {
124+
self.nodes.len()
125+
}
126+
122127
#[inline]
123128
pub fn all_edges<'a>(&'a self) -> &'a [Edge<E>] {
124129
&self.edges
125130
}
126131

132+
#[inline]
133+
pub fn len_edges(&self) -> usize {
134+
self.edges.len()
135+
}
136+
127137
///////////////////////////////////////////////////////////////////////////
128138
// Node construction
129139

0 commit comments

Comments
 (0)