introduce cancelable

This commit is contained in:
Aleksey Kladov 2018-10-20 21:46:17 +03:00
parent 73dd870da2
commit 61518580ed

View File

@ -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);