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 before With.
  • 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.

Bind Default to mandatory vtables.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.