Trait fuels::core::traits::Tokenizable

source ·
pub trait Tokenizable {
    // Required methods
    fn from_token(token: Token) -> Result<Self, Error>
       where Self: Sized;
    fn into_token(self) -> Token;
}

Required Methods§

source

fn from_token(token: Token) -> Result<Self, Error>
where Self: Sized,

Converts a Token into expected type.

source

fn into_token(self) -> Token

Converts a specified type back into token.

Implementations on Foreign Types§

source§

impl Tokenizable for bool

source§

impl Tokenizable for u8

source§

impl Tokenizable for u16

source§

impl Tokenizable for u32

source§

impl Tokenizable for u64

source§

impl Tokenizable for u128

source§

impl Tokenizable for ()

source§

impl Tokenizable for String

source§

impl<A> Tokenizable for (A,)
where A: Tokenizable,

source§

impl<A, B> Tokenizable for (A, B)
where A: Tokenizable, B: Tokenizable,

source§

impl<A, B, C> Tokenizable for (A, B, C)

source§

impl<A, B, C, D> Tokenizable for (A, B, C, D)

source§

impl<A, B, C, D, E> Tokenizable for (A, B, C, D, E)

source§

impl<A, B, C, D, E, F> Tokenizable for (A, B, C, D, E, F)

source§

impl<A, B, C, D, E, F, G> Tokenizable for (A, B, C, D, E, F, G)

source§

impl<A, B, C, D, E, F, G, H> Tokenizable for (A, B, C, D, E, F, G, H)

source§

impl<A, B, C, D, E, F, G, H, I> Tokenizable for (A, B, C, D, E, F, G, H, I)

source§

impl<A, B, C, D, E, F, G, H, I, J> Tokenizable for (A, B, C, D, E, F, G, H, I, J)

source§

impl<A, B, C, D, E, F, G, H, I, J, K> Tokenizable for (A, B, C, D, E, F, G, H, I, J, K)

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> Tokenizable for (A, B, C, D, E, F, G, H, I, J, K, L)

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> Tokenizable for (A, B, C, D, E, F, G, H, I, J, K, L, M)

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Tokenizable for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> Tokenizable for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Tokenizable for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

source§

impl<T> Tokenizable for Option<T>

source§

impl<T> Tokenizable for Vec<T>
where T: Tokenizable,

source§

fn from_token(token: Token) -> Result<Vec<T>, Error>
where Vec<T>: Sized,

source§

fn into_token(self) -> Token

source§

impl<T, E> Tokenizable for Result<T, E>

source§

impl<const SIZE: usize, T> Tokenizable for [T; SIZE]
where T: Tokenizable,

Implementors§