pub fn alloc_ratio_ref<T>(
caller: &mut Caller<'_, T>,
numer: i64,
denom: i64,
) -> Result<Rooted<StructRef>>Expand description
Allocates a $ratio wasm struct (2 i64 fields: numer, denom). Mirrors
alloc_commodity_ref for the Ratio numeric stratum — used when a host
fn returns a typed Ratio without going through the synthesized
ratio_new wrap.