Skip to main content

Module gen_trait_fn_body

Module gen_trait_fn_body 

Source
Expand description

This module contains functions to generate default trait impl function bodies where possible.

Functionsยง

gen_clone_impl ๐Ÿ”’
Generate a Clone impl based on the fields and members of the target type.
gen_debug_impl ๐Ÿ”’
Generate a Debug impl based on the fields and members of the target type.
gen_default_impl ๐Ÿ”’
Generate a Default impl based on the fields and members of the target type.
gen_hash_impl ๐Ÿ”’
Generate a Hash impl based on the fields and members of the target type.
gen_partial_eq ๐Ÿ”’
Generate a PartialEq impl based on the fields and members of the target type.
gen_partial_ord ๐Ÿ”’
gen_trait_fn_body ๐Ÿ”’
Generate custom trait bodies without default implementation where possible.
make_discriminant ๐Ÿ”’