TypeArgumentError
type TypeArgumentError
An error with a type argument
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 TypeArgumentError uint8
const (
// A type was not found in the module specified
TypeArgumentErrorTypeNotFound TypeArgumentError = 0
// A type provided did not match the specified constraint
TypeArgumentErrorConstraintNotSatisfied TypeArgumentError = 1
)
func TypeArgumentErrorFromBcs
func TypeArgumentErrorFromBcs(bcs []byte) (TypeArgumentError, error)
Create this type from BCS encoded bytes.
func TypeArgumentErrorFromJson
func TypeArgumentErrorFromJson(json string) (TypeArgumentError, error)
Create this type from a JSON encoded string.
func (TypeArgumentError) ToBcs
func (_self TypeArgumentError) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (TypeArgumentError) ToDisplayString
func (_self TypeArgumentError) 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 (TypeArgumentError) ToJson
func (_self TypeArgumentError) ToJson() (string, error)
Convert this type to a JSON encoded string.