Full decoders: a struct or message decodes as its generated Elixir struct, every field
set. kiwi_struct_decoder! and kiwi_message_decoder! define one; enums use
KiwiCodec.RustlerGenerator.Values' kiwi_enum_decoder!.
Summary
Types
The Rust KiwiFullField: a message field id, its index among the struct's values, and how to
decode it.
Functions
Whether the module's Rust file appeared or went since the module compiled.
The RustQ AST of each defrust definition.
Callable metadata for the module's definitions.
The Rust items the module generates, in order.
The module's defrustmacro definitions.
The macro_rules! items defrustmacro emits.
The Rust modules the module's defrustmods map its aliases, or itself ([]), to.
The Rust source the module generates.
The RustQ AST of each declared Rust type.
The Rust items the module's types generate.
The Rust types the module's @types declare.
A Rust function defrust generates. It runs only as Rust; calling it from Elixir
raises.
Types
@type kiwi_full_field() :: %{ id: RustQ.Type.u32(), index: RustQ.Type.usize(), repeated: boolean(), decode: RustQ.Type.path(:KiwiDecodeFn) }
The Rust KiwiFullField: a message field id, its index among the struct's values, and how to
decode it.
Functions
Whether the module's Rust file appeared or went since the module compiled.
The RustQ AST of each defrust definition.
Callable metadata for the module's definitions.
The Rust items the module generates, in order.
The module's defrustmacro definitions.
The macro_rules! items defrustmacro emits.
The Rust modules the module's defrustmods map its aliases, or itself ([]), to.
The Rust source the module generates.
The RustQ AST of each declared Rust type.
The Rust items the module's types generate.
The Rust types the module's @types declare.
@spec kiwi_message_fields( RustQ.Type.path(:Env, RustQ.Type.lifetime(:a)), RustQ.Type.mut_ref(RustQ.Type.path(:Decoder, RustQ.Type.lifetime(:_))), RustQ.Type.str(), RustQ.Type.slice(RustQ.Type.path(:Atom)), RustQ.Type.vec(term()), RustQ.Type.slice(RustQ.Type.path(:KiwiFullField)) ) :: RustQ.Type.nif_result(term())
A Rust function defrust generates. It runs only as Rust; calling it from Elixir
raises.