Representation of a serialized token.
Serialization occurs once a list of tokens is passed. After that
the library will determine the actual ABI encoding of a each type wrapped in
a token, and then it will return a
SerializedToken::Static, or
SerializedToken::Dynamic depending on encoding rules
used for a given type.
With a list of values of type SerializedToken
a caller can construct a final
binary data that will represent a valid ABI encoding of function parameters.
This data can be safely appended to the output stream
This data should be saved up in a buffer, and an offset should be
appended to the output stream instead.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static