Struct rustc_interface::queries::Query
source · Expand description
Fields§
§result: RefCell<Option<Result<T>>>
Implementations§
source§impl<T> Query<T>
impl<T> Query<T>
fn compute<F: FnOnce() -> Result<T>>(&self, f: F) -> Result<&Query<T>>
sourcepub fn take(&self) -> T
pub fn take(&self) -> T
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,
impl<T> !Sync for Query<T>
impl<T> Unpin for Query<T>where
T: Unpin,
impl<T> UnwindSafe for Query<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.