Struct rustc_query_system::query::QueryJobId
source · [−]pub struct QueryJobId<D> {
pub job: QueryShardJobId,
pub shard: u16,
pub kind: D,
}Expand description
A value uniquely identifying an active query job.
Fields
job: QueryShardJobIdWhich job within a shard is this
shard: u16In which shard is this job
kind: DWhat kind of query this job is.
Implementations
sourceimpl<D> QueryJobId<D> where
D: Copy + Clone + Eq + Hash,
impl<D> QueryJobId<D> where
D: Copy + Clone + Eq + Hash,
pub fn new(job: QueryShardJobId, shard: usize, kind: D) -> Self
fn query(self, map: &QueryMap<D>) -> QueryStackFrame
sourceimpl<D> QueryJobId<D> where
D: Copy + Clone + Eq + Hash,
impl<D> QueryJobId<D> where
D: Copy + Clone + Eq + Hash,
pub(super) fn find_cycle_in_stack(
&self,
query_map: QueryMap<D>,
current_job: &Option<QueryJobId<D>>,
span: Span
) -> CycleError
Trait Implementations
sourceimpl<D: Clone> Clone for QueryJobId<D>
impl<D: Clone> Clone for QueryJobId<D>
sourcefn clone(&self) -> QueryJobId<D>
fn clone(&self) -> QueryJobId<D>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<D: Hash> Hash for QueryJobId<D>
impl<D: Hash> Hash for QueryJobId<D>
sourceimpl<D: PartialEq> PartialEq<QueryJobId<D>> for QueryJobId<D>
impl<D: PartialEq> PartialEq<QueryJobId<D>> for QueryJobId<D>
sourcefn eq(&self, other: &QueryJobId<D>) -> bool
fn eq(&self, other: &QueryJobId<D>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &QueryJobId<D>) -> bool
fn ne(&self, other: &QueryJobId<D>) -> bool
This method tests for !=.
impl<D: Copy> Copy for QueryJobId<D>
impl<D: Eq> Eq for QueryJobId<D>
impl<D> StructuralEq for QueryJobId<D>
impl<D> StructuralPartialEq for QueryJobId<D>
Auto Trait Implementations
impl<D> RefUnwindSafe for QueryJobId<D> where
D: RefUnwindSafe,
impl<D> Send for QueryJobId<D> where
D: Send,
impl<D> Sync for QueryJobId<D> where
D: Sync,
impl<D> Unpin for QueryJobId<D> where
D: Unpin,
impl<D> UnwindSafe for QueryJobId<D> where
D: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. 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.