pub enum DepNode<'tcx> {
    Api(DefId, GenericArgsRef<'tcx>),
    Ty(TyWrapper<'tcx>),
}Variants§
Api(DefId, GenericArgsRef<'tcx>)
Ty(TyWrapper<'tcx>)
Implementations§
Source§impl<'tcx> DepNode<'tcx>
 
impl<'tcx> DepNode<'tcx>
pub fn api( id: impl IntoQueryParam<DefId>, args: GenericArgsRef<'tcx>, ) -> DepNode<'tcx>
pub fn ty(ty: Ty<'tcx>) -> DepNode<'tcx>
pub fn is_ty(&self) -> bool
pub fn is_api(&self) -> bool
pub fn as_ty(&self) -> Option<TyWrapper<'tcx>>
pub fn expect_ty(&self) -> TyWrapper<'tcx>
pub fn expect_api(&self) -> (DefId, GenericArgsRef<'tcx>)
Trait Implementations§
impl<'tcx> Copy for DepNode<'tcx>
impl<'tcx> Eq for DepNode<'tcx>
impl<'tcx> StructuralPartialEq for DepNode<'tcx>
Auto Trait Implementations§
impl<'tcx> Freeze for DepNode<'tcx>
impl<'tcx> !RefUnwindSafe for DepNode<'tcx>
impl<'tcx> Send for DepNode<'tcx>
impl<'tcx> Sync for DepNode<'tcx>
impl<'tcx> Unpin for DepNode<'tcx>
impl<'tcx> !UnwindSafe for DepNode<'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.