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.
Steal::is_stolen()
1 parent 9337f7a commit 0a35ec7Copy full SHA for 0a35ec7
compiler/rustc_data_structures/src/steal.rs
@@ -51,6 +51,10 @@ impl<T> Steal<T> {
51
let value = value_ref.take();
52
value.expect("attempt to steal from stolen value")
53
}
54
+
55
+ pub fn is_stolen(&self) -> bool {
56
+ self.value.borrow().is_none()
57
+ }
58
59
60
impl<CTX, T: HashStable<CTX>> HashStable<CTX> for Steal<T> {
0 commit comments