Struct rustc::session::code_stats::CodeStats [−][src]
pub struct CodeStats { type_sizes: FxHashSet<TypeSizeInfo>, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fields
type_sizes: FxHashSet<TypeSizeInfo>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl CodeStats
[src]
impl CodeStats
pub fn new() -> Self
[src]
pub fn new() -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn record_type_size<S: ToString>(
&mut self,
kind: DataTypeKind,
type_desc: S,
align: Align,
overall_size: Size,
packed: bool,
opt_discr_size: Option<Size>,
variants: Vec<VariantInfo>
)
[src]
pub fn record_type_size<S: ToString>(
&mut self,
kind: DataTypeKind,
type_desc: S,
align: Align,
overall_size: Size,
packed: bool,
opt_discr_size: Option<Size>,
variants: Vec<VariantInfo>
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_type_sizes(&self)
[src]
pub fn print_type_sizes(&self)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl PartialEq for CodeStats
[src]
impl PartialEq for CodeStats
fn eq(&self, other: &CodeStats) -> bool
[src]
fn eq(&self, other: &CodeStats) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CodeStats) -> bool
[src]
fn ne(&self, other: &CodeStats) -> bool
This method tests for !=
.
impl Eq for CodeStats
[src]
impl Eq for CodeStats
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl Debug for CodeStats
[src]
impl Debug for CodeStats