[−][src]Struct rustc_query_system::dep_graph::prev::PreviousDepGraph

pub struct PreviousDepGraph<K: DepKind> {
    data: SerializedDepGraph<K>,
    index: FxHashMap<DepNode<K>, SerializedDepNodeIndex>,
}

Fields

data: SerializedDepGraph<K>index: FxHashMap<DepNode<K>, SerializedDepNodeIndex>

Implementations

impl<K: DepKind> PreviousDepGraph<K>[src]

pub fn new(data: SerializedDepGraph<K>) -> PreviousDepGraph<K>[src]

pub fn edge_targets_from(
    &self,
    dep_node_index: SerializedDepNodeIndex
) -> &[SerializedDepNodeIndex]
[src]

pub fn index_to_node(
    &self,
    dep_node_index: SerializedDepNodeIndex
) -> DepNode<K>
[src]

pub fn node_to_index(&self, dep_node: &DepNode<K>) -> SerializedDepNodeIndex[src]

pub fn node_to_index_opt(
    &self,
    dep_node: &DepNode<K>
) -> Option<SerializedDepNodeIndex>
[src]

pub fn fingerprint_of(&self, dep_node: &DepNode<K>) -> Option<Fingerprint>[src]

pub fn fingerprint_by_index(
    &self,
    dep_node_index: SerializedDepNodeIndex
) -> Fingerprint
[src]

pub fn node_count(&self) -> usize[src]

Trait Implementations

impl<K: Debug + DepKind> Debug for PreviousDepGraph<K>[src]

impl<K: DepKind, __D: Decoder> Decodable<__D> for PreviousDepGraph<K> where
    K: Decodable<__D>, 
[src]

impl<K: DepKind> Default for PreviousDepGraph<K>[src]

impl<K: DepKind, __E: Encoder> Encodable<__E> for PreviousDepGraph<K> where
    K: Encodable<__E>, 
[src]

Auto Trait Implementations

impl<K> RefUnwindSafe for PreviousDepGraph<K> where
    K: RefUnwindSafe, 

impl<K> Send for PreviousDepGraph<K> where
    K: Send, 

impl<K> Sync for PreviousDepGraph<K> where
    K: Sync, 

impl<K> Unpin for PreviousDepGraph<K> where
    K: Unpin, 

impl<K> UnwindSafe for PreviousDepGraph<K> where
    K: 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, 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.