Struct rustc_interface::queries::Query
source · Expand description
Fields
result: RefCell<Option<Result<T>>>
Implementations
sourceimpl<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
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.