Struct rustc_query_system::dep_graph::serialized::EncoderState
source · struct EncoderState<D: Deps> {
encoder: FileEncoder,
total_node_count: usize,
total_edge_count: usize,
stats: Option<FxHashMap<DepKind, Stat>>,
kind_stats: Vec<u32>,
marker: PhantomData<D>,
}
Fields§
§encoder: FileEncoder
§total_node_count: usize
§total_edge_count: usize
§stats: Option<FxHashMap<DepKind, Stat>>
§kind_stats: Vec<u32>
Stores the number of times we’ve encoded each dep kind.
marker: PhantomData<D>
Implementations§
source§impl<D: Deps> EncoderState<D>
impl<D: Deps> EncoderState<D>
fn new(encoder: FileEncoder, record_stats: bool) -> Self
fn encode_node( &mut self, node: &NodeInfo, record_graph: &Option<Lock<DepGraphQuery>> ) -> DepNodeIndex
fn finish(self, profiler: &SelfProfilerRef) -> FileEncodeResult
Auto Trait Implementations§
impl<D> !RefUnwindSafe for EncoderState<D>
impl<D> Send for EncoderState<D>where D: Send,
impl<D> Sync for EncoderState<D>where D: Sync,
impl<D> Unpin for EncoderState<D>where D: Unpin,
impl<D> !UnwindSafe for EncoderState<D>
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<Tcx, T> Value<Tcx> for Twhere
Tcx: DepContext,
impl<Tcx, T> Value<Tcx> for Twhere Tcx: DepContext,
default fn from_cycle_error( tcx: Tcx, cycle: &[QueryInfo], _guar: ErrorGuaranteed ) -> T
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: 112 bytes