Struct rustc_query_system::dep_graph::serialized::EncoderState
source · struct EncoderState<K: DepKind> {
encoder: FileEncoder,
total_node_count: usize,
total_edge_count: usize,
stats: Option<FxHashMap<K, Stat<K>>>,
}
Fields
encoder: FileEncoder
total_node_count: usize
total_edge_count: usize
stats: Option<FxHashMap<K, Stat<K>>>
Implementations
sourceimpl<K: DepKind> EncoderState<K>
impl<K: DepKind> EncoderState<K>
fn new(encoder: FileEncoder, record_stats: bool) -> Self
fn encode_node(
&mut self,
node: &NodeInfo<K>,
record_graph: &Option<Lock<DepGraphQuery<K>>>
) -> DepNodeIndex
fn finish(self, profiler: &SelfProfilerRef) -> FileEncodeResult
Auto Trait Implementations
impl<K> !RefUnwindSafe for EncoderState<K>
impl<K> Send for EncoderState<K>
impl<K> Sync for EncoderState<K>where
K: Sync,
impl<K> Unpin for EncoderState<K>where
K: Unpin,
impl<K> !UnwindSafe for EncoderState<K>
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: 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: 96 bytes