introduce cancelable
This commit is contained in:
parent
73dd870da2
commit
61518580ed
@ -37,6 +37,11 @@ pub use ra_editor::{
|
||||
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)]
|
||||
pub struct FileId(pub u32);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user