We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
contains
ResultsCursor
1 parent e6ec0d1 commit e2b9d6eCopy full SHA for e2b9d6e
src/librustc_mir/dataflow/generic/cursor.rs
@@ -65,6 +65,13 @@ where
65
&self.state
66
}
67
68
+ /// Returns `true` if the dataflow state at the current location contains the given element.
69
+ ///
70
+ /// Shorthand for `self.get().contains(elem)`
71
+ pub fn contains(&self, elem: A::Idx) -> bool {
72
+ self.state.contains(elem)
73
+ }
74
+
75
/// Resets the cursor to the start of the given basic block.
76
pub fn seek_to_block_start(&mut self, block: BasicBlock) {
77
self.state.overwrite(&self.results.borrow().entry_sets[block]);
0 commit comments