Value_codec.Decodermodule State_tys : sig ... endtype nonrec rust_val = Sptr.t Rust_val.tmodule ParserMonad : sig ... endval variant_of_enum :
offset:[< Soteria__Bv_values__Typed.T.sint ] Soteria__Bv_values__Typed.t ->
Charon.Types.ty ->
Charon.Types.variant_id ParserMonad.tParses the current variant of the enum at the given offset. This handles cases such as niches, where the discriminant isn't directly encoded as a tag.
val decode :
meta:
([< Soteria__Bv_values__Typed.T.any ] Soteria__Bv_values__Typed.t, 'a)
Rust_val.meta_raw ->
offset:Soteria_rust_lib.Typed.T.sint Typed.t ->
Charon.Types.ty ->
rust_val ParserMonad.tdecode ~meta ~offset ty Parses a rust value of type ty at the given offset, using the provided metadata for DSTs, and returns the associated Rust_val. This does not perform any validity checking, aside from erroring if the type is uninhabited.