[−][src]Struct rustc_query_system::query::QueryJobId

pub struct QueryJobId<D> {
    pub job: QueryShardJobId,
    pub shard: u16,
    pub kind: D,
}

A value uniquely identifiying an active query job.

Fields

job: QueryShardJobId

Which job within a shard is this

shard: u16

In which shard is this job

kind: D

What kind of query this job is.

Implementations

impl<D> QueryJobId<D> where
    D: Copy + Clone + Eq + Hash, 
[src]

pub fn new(job: QueryShardJobId, shard: usize, kind: D) -> Self[src]

pub(in query::job) fn query<Q: Clone>(
    self,
    map: &FxHashMap<QueryJobId<D>, QueryJobInfo<D, Q>>
) -> Q
[src]

Trait Implementations

impl<D: Clone> Clone for QueryJobId<D>[src]

impl<D: Copy> Copy for QueryJobId<D>[src]

impl<D: Eq> Eq for QueryJobId<D>[src]

impl<D: Hash> Hash for QueryJobId<D>[src]

impl<D: PartialEq> PartialEq<QueryJobId<D>> for QueryJobId<D>[src]

impl<D> StructuralEq for QueryJobId<D>[src]

impl<D> StructuralPartialEq for QueryJobId<D>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.