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
Loading was successful.
DataOutOfDate
The file either didn’t exist or was produced by an incompatible compiler version.
Error
Fields
message: String
An error occurred.
Implementations
sourceimpl<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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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.