diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index 46cc0722b..b1d5c4936 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs | |||
@@ -37,6 +37,11 @@ pub use ra_editor::{ | |||
37 | RunnableKind, StructureNode, | 37 | RunnableKind, StructureNode, |
38 | }; | 38 | }; |
39 | 39 | ||
40 | #[derive(Clone, Copy, Debug)] | ||
41 | pub struct Cancel; | ||
42 | |||
43 | pub type Cancelable<T> = Result<T, Cancel>; | ||
44 | |||
40 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] | 45 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] |
41 | pub struct FileId(pub u32); | 46 | pub struct FileId(pub u32); |
42 | 47 | ||