Struct wiggle_generate::Names
source · [−]pub struct Names { /* private fields */ }
Implementations
sourceimpl Names
impl Names
pub fn new(runtime_mod: TokenStream) -> Names
pub fn runtime_mod(&self) -> TokenStream
pub fn type_(&self, id: &Id) -> TokenStream
pub fn builtin_type(&self, b: BuiltinType) -> TokenStream
pub fn wasm_type(&self, ty: WasmType) -> TokenStream
pub fn type_ref(&self, tref: &TypeRef, lifetime: TokenStream) -> TokenStream
sourcepub fn enum_variant(&self, id: &Id) -> Ident
pub fn enum_variant(&self, id: &Id) -> Ident
pub fn flag_member(&self, id: &Id) -> Ident
pub fn int_member(&self, id: &Id) -> Ident
sourcepub fn struct_member(&self, id: &Id) -> Ident
pub fn struct_member(&self, id: &Id) -> Ident
sourcepub fn trait_name(&self, id: &Id) -> Ident
pub fn trait_name(&self, id: &Id) -> Ident
sourcepub fn func_param(&self, id: &Id) -> Ident
pub fn func_param(&self, id: &Id) -> Ident
sourcepub fn func_ptr_binding(&self, id: &Id) -> Ident
pub fn func_ptr_binding(&self, id: &Id) -> Ident
For when you need a {name}_ptr binding for passing a value by reference:
sourcepub fn func_len_binding(&self, id: &Id) -> Ident
pub fn func_len_binding(&self, id: &Id) -> Ident
For when you need a {name}_len binding for passing an array:
pub fn user_error_conversion_method(&self, user_type: &UserErrorType) -> Ident
Auto Trait Implementations
impl RefUnwindSafe for Names
impl !Send for Names
impl !Sync for Names
impl Unpin for Names
impl UnwindSafe for Names
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more