mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
introduce cancelable
This commit is contained in:
parent
73dd870da2
commit
61518580ed
1 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,11 @@ pub use ra_editor::{
|
||||||
RunnableKind, StructureNode,
|
RunnableKind, StructureNode,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[derive(Clone, Copy, Debug)]
|
||||||
|
pub struct Cancel;
|
||||||
|
|
||||||
|
pub type Cancelable<T> = Result<T, Cancel>;
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
pub struct FileId(pub u32);
|
pub struct FileId(pub u32);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue