Struct cglue_gen::trait_groups::TraitGroup [−][src]
pub struct TraitGroup { /* fields omitted */ }
Expand description
Describes parse trait group, allows to generate code for it.
Implementations
Identifier for optional group struct.
Arguments
name
- base name of the trait group.postfix
- postfix to add after the naem, and beforeWith
.traits
- traits that are to be implemented.
Get the name of the function for trait conversion.
Arguments
prefix
- function name prefix.lc_names
- lowercase identifiers of the traits the function implements.
Generate function calls that enable individual functional vtables.
Arguments
iter
- iterator of optional traits to enable
Generate full code for the trait group.
This trait group will have all variants generated for converting, building, and converting it.
pub fn vtbl_where_bounds<'a>(
iter: impl Iterator<Item = &'a TraitInfo>,
container_ident: TokenStream,
this_ident: TokenStream,
ctx_ident: TokenStream,
ctx_opaque_ident: TokenStream
) -> TokenStream
pub fn vtbl_where_bounds<'a>(
iter: impl Iterator<Item = &'a TraitInfo>,
container_ident: TokenStream,
this_ident: TokenStream,
ctx_ident: TokenStream,
ctx_opaque_ident: TokenStream
) -> TokenStream
Bind Default
to mandatory vtables.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TraitGroup
impl !Send for TraitGroup
impl !Sync for TraitGroup
impl Unpin for TraitGroup
impl UnwindSafe for TraitGroup