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

Simplified output type for single value.

Required Methods§

source

fn from_token(token: Token) -> Result<Self, InvalidOutputType>
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 i8

source§

impl Tokenizable for i16

source§

impl Tokenizable for i32

source§

impl Tokenizable for i64

source§

impl Tokenizable for i128

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 String

source§

impl Tokenizable for Vec<u8>

source§

impl Tokenizable for Bytes

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<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> Tokenizable for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)

source§

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

source§

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

source§

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

source§

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

source§

impl<T: TokenizableItem + Clone, const N: usize> Tokenizable for [T; N]

source§

impl<T: TokenizableItem> Tokenizable for Vec<T>

source§

impl<const N: usize> Tokenizable for [u8; N]

Implementors§