MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / flat_count

Method flat_count

crates/environ/src/component/types.rs:901–904  ·  view source on GitHub ↗

Returns the flat count of this ABI information so long as the count doesn't exceed the `max` specified.

(&self, max: usize)

Source from the content-addressed store, hash-verified

899 /// Returns the flat count of this ABI information so long as the count
900 /// doesn't exceed the `max` specified.
901 pub fn flat_count(&self, max: usize) -> Option<usize> {
902 let flat = usize::from(self.flat_count?);
903 if flat > max { None } else { Some(flat) }
904 }
905}
906
907/// ABI information about the representation of a variant.

Callers 7

lower_argsMethod · 0.80
lift_resultsMethod · 0.80
liftMethod · 0.80
lowerMethod · 0.80
lift_variantFunction · 0.80
call_sync_lowerMethod · 0.80
load_paramsMethod · 0.80

Calls 1

fromFunction · 0.85

Tested by

no test coverage detected