MoveLocation
type MoveLocation
Location in move bytecode where an error occurred
BCS
The BCS serialized form of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).
type MoveLocation struct {
// The package id
Package *ObjectId
// The module name
Module string
// The function index
Function uint16
// Index into the code stream for a jump. The offset is relative to the beginning of the
// instruction stream.
Instruction uint16
// The name of the function if available
FunctionName *string
}
func MoveLocationFromBcs
func MoveLocationFromBcs(bcs []byte) (MoveLocation, error)
Create this type from BCS encoded bytes.
func MoveLocationFromJson
func MoveLocationFromJson(json string) (MoveLocation, error)
Create this type from a JSON encoded string.
func (*MoveLocation) Destroy
func (r *MoveLocation) Destroy()
func (MoveLocation) ToBcs
func (_self MoveLocation) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (MoveLocation) ToDisplayString
func (_self MoveLocation) ToDisplayString() string
Render this type as human-readable text.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
func (MoveLocation) ToJson
func (_self MoveLocation) ToJson() (string, error)
Convert this type to a JSON encoded string.