Foo
The event selector is computed from the type signature of the struct in the event, similar to how one might type the constructor function. For example, given:
Standalone Functions
get_fn_visibility
get_fn_visibility(f);
Parameters
Name | Type |
---|---|
f | FunctionDefinition |
is_fn_private
is_fn_private(f);
Parameters
Name | Type |
---|---|
f | FunctionDefinition |
is_fn_public
is_fn_public(f);
Parameters
Name | Type |
---|---|
f | FunctionDefinition |
is_fn_view
is_fn_view(f);
Parameters
Name | Type |
---|---|
f | FunctionDefinition |
is_fn_internal
is_fn_internal(f);
Parameters
Name | Type |
---|---|
f | FunctionDefinition |
is_fn_initializer
is_fn_initializer(f);
Parameters
Name | Type |
---|---|
f | FunctionDefinition |
fn_has_noinitcheck
fn_has_noinitcheck(f);
Parameters
Name | Type |
---|---|
f | FunctionDefinition |
modify_fn_body
modify_fn_body(body, prepend, append);
Parameters
Name | Type |
---|---|
body | [Expr] |
prepend | Quoted |
append | Quoted |
add_to_field_slice
add_to_field_slice(slice_name, name, typ);
Parameters
Name | Type |
---|---|
slice_name | Quoted |
name | Quoted |
typ | Type |
add_to_hasher
add_to_hasher(hasher_name, name, typ);
Parameters
Name | Type |
---|---|
hasher_name | Quoted |
name | Quoted |
typ | Type |
signature_of_type
signature_of_type(typ);
Parameters
Name | Type |
---|---|
typ | Type |
as_str_quote
as_str_quote(self);