Struct rustc_query_system::dep_graph::DepNode
source · [−]pub struct DepNode<K> {
pub kind: K,
pub hash: PackedFingerprint,
}
Fields
kind: K
hash: PackedFingerprint
Implementations
sourceimpl<K: DepKind> DepNode<K>
impl<K: DepKind> DepNode<K>
sourcepub fn new_no_params<Ctxt>(tcx: Ctxt, kind: K) -> DepNode<K>where
Ctxt: DepContext<DepKind = K>,
pub fn new_no_params<Ctxt>(tcx: Ctxt, kind: K) -> DepNode<K>where
Ctxt: DepContext<DepKind = K>,
Creates a new, parameterless DepNode. This method will assert that the DepNode corresponding to the given DepKind actually does not require any parameters.
pub fn construct<Ctxt, Key>(tcx: Ctxt, kind: K, arg: &Key) -> DepNode<K>where
Ctxt: DepContext<DepKind = K>,
Key: DepNodeParams<Ctxt>,
Trait Implementations
sourceimpl<K: Ord> Ord for DepNode<K>
impl<K: Ord> Ord for DepNode<K>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<K: PartialEq> PartialEq<DepNode<K>> for DepNode<K>
impl<K: PartialEq> PartialEq<DepNode<K>> for DepNode<K>
sourceimpl<K: PartialOrd> PartialOrd<DepNode<K>> for DepNode<K>
impl<K: PartialOrd> PartialOrd<DepNode<K>> for DepNode<K>
sourcefn partial_cmp(&self, other: &DepNode<K>) -> Option<Ordering>
fn partial_cmp(&self, other: &DepNode<K>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<K: Copy> Copy for DepNode<K>
impl<K: Eq> Eq for DepNode<K>
impl<K> StructuralEq for DepNode<K>
impl<K> StructuralPartialEq for DepNode<K>
Auto Trait Implementations
impl<K> RefUnwindSafe for DepNode<K>where
K: RefUnwindSafe,
impl<K> Send for DepNode<K>where
K: Send,
impl<K> Sync for DepNode<K>where
K: Sync,
impl<K> Unpin for DepNode<K>where
K: Unpin,
impl<K> UnwindSafe for DepNode<K>where
K: 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.