pub struct LeanImportStats {Show 14 fields
pub direct_import_names: Vec<String>,
pub effective_module_count: u64,
pub compacted_region_count: u64,
pub memory_mapped_region_count: u64,
pub compacted_region_bytes: u64,
pub memory_mapped_region_bytes: u64,
pub non_memory_mapped_region_bytes: u64,
pub imported_bytes: u64,
pub imported_constant_count: u64,
pub extension_count: u64,
pub total_imported_extension_entries: u64,
pub import_level: String,
pub import_all: bool,
pub load_exts: bool,
}Expand description
Lean-native attribution for the imported environment behind a session.
Fields§
§direct_import_names: Vec<String>§effective_module_count: u64§compacted_region_count: u64§memory_mapped_region_count: u64§compacted_region_bytes: u64§memory_mapped_region_bytes: u64§non_memory_mapped_region_bytes: u64§imported_bytes: u64§imported_constant_count: u64§extension_count: u64§total_imported_extension_entries: u64§import_level: String§import_all: bool§load_exts: boolImplementations§
Source§impl LeanImportStats
impl LeanImportStats
Sourcepub fn memory_diagnostic(&self) -> String
pub fn memory_diagnostic(&self) -> String
Stable compact attribution fragment for memory guardrail diagnostics.
Trait Implementations§
Source§impl Clone for LeanImportStats
impl Clone for LeanImportStats
Source§fn clone(&self) -> LeanImportStats
fn clone(&self) -> LeanImportStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LeanImportStats
impl Debug for LeanImportStats
impl Eq for LeanImportStats
Source§impl PartialEq for LeanImportStats
impl PartialEq for LeanImportStats
impl StructuralPartialEq for LeanImportStats
Source§impl<'lean> TryFromLean<'lean> for LeanImportStats
impl<'lean> TryFromLean<'lean> for LeanImportStats
Source§fn try_from_lean(obj: Obj<'lean>) -> LeanResult<Self>
fn try_from_lean(obj: Obj<'lean>) -> LeanResult<Self>
Decode
obj into Self, returning a
LeanError::Host with stage
[HostStage::Conversion] if the object’s kind or payload is
outside the type’s representable range. Read moreAuto Trait Implementations§
impl Freeze for LeanImportStats
impl RefUnwindSafe for LeanImportStats
impl Send for LeanImportStats
impl Sync for LeanImportStats
impl Unpin for LeanImportStats
impl UnsafeUnpin for LeanImportStats
impl UnwindSafe for LeanImportStats
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