Generates Rustler Term<'a> builders, decoders, and map access helpers.
Summary
Functions
@spec bool_val(term(), RustQ.Type.path({:rustler, :Atom})) :: boolean()
@spec builders(keyword()) :: [RustQ.Rust.Fragment.t()]
@spec decoder( atom() | String.t(), keyword() ) :: [RustQ.Rust.Fragment.t()]
@spec default_struct_values( RustQ.Type.path(:Env, RustQ.Type.lifetime(:_)), RustQ.Type.path(:Atom), RustQ.Type.usize() ) :: RustQ.Type.vec(RustQ.Type.path({:rustler, :wrapper, :NIF_TERM}))
@spec f64_val(term(), RustQ.Type.path({:rustler, :Atom})) :: RustQ.Type.f64()
@spec get(term(), RustQ.Type.path({:rustler, :Atom})) :: RustQ.Type.option(term())
@spec helpers(keyword()) :: [RustQ.Rust.Fragment.t()]
@spec list_val(term(), RustQ.Type.path({:rustler, :Atom})) :: RustQ.Type.vec(term())
@spec make_map_from_terms( RustQ.Type.path(:Env, RustQ.Type.lifetime(:a)), RustQ.Type.slice({term(), term()}) ) :: RustQ.Type.nif_result(term())
@spec make_struct_from_terms( RustQ.Type.path(:Env, RustQ.Type.lifetime(:a)), RustQ.Type.slice(term()), RustQ.Type.slice(term()) ) :: RustQ.Type.nif_result(term())
@spec opt(term(), RustQ.Type.path({:rustler, :Atom})) :: RustQ.Type.option(term())
@spec str_val(term(), RustQ.Type.path({:rustler, :Atom})) :: String.t()
@spec type_atom(term()) :: RustQ.Type.option(RustQ.Type.path({:rustler, :Atom}))
@spec type_eq(term(), RustQ.Type.path({:rustler, :Atom})) :: boolean()