pub struct WasmFacts<'a> {
pub raw_bytes: usize,
pub code_section_bytes: usize,
pub data_section_bytes: usize,
pub defined_functions: u32,
pub data_segments: u32,
pub exports: BTreeMap<&'a str, Export>,
pub custom_sections: Vec<CustomSection<'a>>,
}Expand description
Core Wasm facts for consumer reports and transform-contract comparisons.
Fields§
§raw_bytes: usizeComplete raw artifact byte length.
code_section_bytes: usizeCode section payload bytes, including its vector count and body lengths.
data_section_bytes: usizeData section payload bytes, including its vector count and framing.
defined_functions: u32Defined functions, excluding imports; function/code counts must agree.
data_segments: u32Number of encoded data segments.
exports: BTreeMap<&'a str, Export>All exports keyed by exact name; callers select IC/application methods.
custom_sections: Vec<CustomSection<'a>>All custom metadata; callers select Candid sections and acceptance rules.
Trait Implementations§
impl<'a> Eq for WasmFacts<'a>
impl<'a> StructuralPartialEq for WasmFacts<'a>
Auto Trait Implementations§
impl<'a> Freeze for WasmFacts<'a>
impl<'a> RefUnwindSafe for WasmFacts<'a>
impl<'a> Send for WasmFacts<'a>
impl<'a> Sync for WasmFacts<'a>
impl<'a> Unpin for WasmFacts<'a>
impl<'a> UnsafeUnpin for WasmFacts<'a>
impl<'a> UnwindSafe for WasmFacts<'a>
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