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

Method print_ty

crates/wit-bindgen/src/rust.rs:31–33  ·  view source on GitHub ↗
(&mut self, ty: &Type, mode: TypeMode)

Source from the content-addressed store, hash-verified

29 fn ownership(&self) -> Ownership;
30
31 fn print_ty(&mut self, ty: &Type, mode: TypeMode) {
32 self.push_str(&self.ty(ty, mode))
33 }
34 fn ty(&self, ty: &Type, mode: TypeMode) -> String {
35 match ty {
36 Type::Id(t) => self.tyid(*t, mode),

Callers 10

type_recordMethod · 0.80
type_tupleMethod · 0.80
type_optionMethod · 0.80
print_rust_enumMethod · 0.80
type_aliasMethod · 0.80
print_result_tyMethod · 0.80

Implementers 1

lib.rscrates/wit-bindgen/src/lib.rs

Calls 2

push_strMethod · 0.45
tyMethod · 0.45

Tested by

no test coverage detected