Home
last modified time | relevance | path

Searched refs:TypeMode (Results 1 – 2 of 2) sorted by relevance

/wasmtime-44.0.1/crates/wit-bindgen/src/
H A Drust.rs6 pub enum TypeMode { enum
31 fn print_ty(&mut self, ty: &Type, mode: TypeMode) { in print_ty() argument
34 fn ty(&self, ty: &Type, mode: TypeMode) -> String { in ty()
50 TypeMode::AllBorrowed(lt) => { in ty()
57 TypeMode::Owned => { in ty()
218 TypeMode::Owned in list()
224 TypeMode::AllBorrowed(lt) => { in list()
231 TypeMode::Owned => { in list()
327 TypeMode::Owned in modes_of()
330 TypeMode::AllBorrowed("'a") in modes_of()
[all …]
H A Dlib.rs8 use crate::rust::{RustGenerator, TypeMode, to_rust_ident, to_rust_upper_camel_case};
1996 mode: TypeMode, in print_rust_enum_debug() argument
2165 TypeMode::Owned, in type_enum()
2462 self.print_ty(&param.ty, TypeMode::Owned); in generate_guest_import_closure()
2685 self.print_ty(&param.ty, TypeMode::Owned); in generate_function_params()
2701 self.print_result_ty(func.result, TypeMode::Owned); in generate_function_result()
2708 self.print_ty(&ok, TypeMode::Owned); in generate_function_result()
2720 self.print_result_ty(func.result, TypeMode::Owned); in generate_function_result()
2764 TypeMode::Owned in define_rust_guest_export()
2766 TypeMode::AllBorrowed("'_") in define_rust_guest_export()
[all …]