[][src]Enum clarity::abi::SerializedToken

pub enum SerializedToken {
    Static([u8; 32]),
    Dynamic(Vec<u8>),
}

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.

Variants

Static([u8; 32])

This data can be safely appended to the output stream

Dynamic(Vec<u8>)

This data should be saved up in a buffer, and an offset should be appended to the output stream instead.

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self