Struct rustc_query_system::dep_graph::serialized::GraphEncoder
source · pub struct GraphEncoder<K: DepKind> {
status: Lock<EncoderState<K>>,
record_graph: Option<Lock<DepGraphQuery<K>>>,
}
Fields§
§status: Lock<EncoderState<K>>
§record_graph: Option<Lock<DepGraphQuery<K>>>
Implementations§
source§impl<K: DepKind + Encodable<FileEncoder>> GraphEncoder<K>
impl<K: DepKind + Encodable<FileEncoder>> GraphEncoder<K>
pub fn new(
encoder: FileEncoder,
prev_node_count: usize,
record_graph: bool,
record_stats: bool
) -> Self
pub(crate) fn with_query(&self, f: impl Fn(&DepGraphQuery<K>))
pub(crate) fn print_incremental_info(
&self,
total_read_count: u64,
total_duplicate_read_count: u64
)
pub(crate) fn send(
&self,
profiler: &SelfProfilerRef,
node: DepNode<K>,
fingerprint: Fingerprint,
edges: SmallVec<[DepNodeIndex; 8]>
) -> DepNodeIndex
pub fn finish(self, profiler: &SelfProfilerRef) -> FileEncodeResult
Auto Trait Implementations§
impl<K> !RefUnwindSafe for GraphEncoder<K>
impl<K> Send for GraphEncoder<K>
impl<K> !Sync for GraphEncoder<K>
impl<K> Unpin for GraphEncoder<K>where
K: Unpin,
impl<K> !UnwindSafe for GraphEncoder<K>
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 288 bytes