Enum rustc_incremental::LoadResult
source · pub enum LoadResult<T> {
Ok {
data: T,
},
DataOutOfDate,
LoadDepGraph(PathBuf, Error),
DecodeIncrCache(Box<dyn Any + Send>),
}
Expand description
Represents the result of an attempt to load incremental compilation data.
Variants§
Ok
Fields
§
data: T
Loading was successful.
DataOutOfDate
The file either didn’t exist or was produced by an incompatible compiler version.
LoadDepGraph(PathBuf, Error)
Loading the dep graph failed.
DecodeIncrCache(Box<dyn Any + Send>)
Decoding loaded incremental cache failed.
Implementations§
source§impl<T: Default> LoadResult<T>
impl<T: Default> LoadResult<T>
sourcepub fn open(self, sess: &Session) -> T
pub fn open(self, sess: &Session) -> T
Accesses the data returned in LoadResult::Ok
.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for LoadResult<T>
impl<T> Send for LoadResult<T>where T: Send,
impl<T> !Sync for LoadResult<T>
impl<T> Unpin for LoadResult<T>where T: Unpin,
impl<T> !UnwindSafe for LoadResult<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.