Enum rustc_incremental::persist::load::LoadResult
source · pub enum LoadResult<T> {
Ok {
data: T,
},
DataOutOfDate,
Error {
message: String,
},
}
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.
Error
An error occurred.
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>where
T: RefUnwindSafe,
impl<T> Send for LoadResult<T>where
T: Send,
impl<T> Sync for LoadResult<T>where
T: Sync,
impl<T> Unpin for LoadResult<T>where
T: Unpin,
impl<T> UnwindSafe for LoadResult<T>where
T: UnwindSafe,
Blanket Implementations§
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.