Struct rustc_interface::queries::Query [−][src]
Expand description
Fields
result: RefCell<Option<Result<T>>>Implementations
impl<T> Query<T>[src]
impl<T> Query<T>[src]fn compute<F: FnOnce() -> Result<T>>(&self, f: F) -> Result<&Query<T>>[src]
pub fn take(&self) -> T[src]
pub fn take(&self) -> T[src]Takes ownership of the query result. Further attempts to take or peek the query
result will panic unless it is generated by calling the compute method.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Query<T>
impl<T> Send for Query<T> where
T: Send,
T: Send,
impl<T> !Sync for Query<T>
impl<T> Unpin for Query<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Query<T> where
T: UnwindSafe,
T: UnwindSafe,