pub trait Parameterize {
    // Required method
    fn param_type() -> ParamType;
}
Expand description

abigen requires Parameterized to construct nested types. It is also used by try_from_bytes to facilitate the instantiation of custom types from bytes.

Required Methods§

Implementations on Foreign Types§

source§

impl Parameterize for u8

source§

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

source§

impl<A, B, C> Parameterize for (A, B, C)where A: Parameterize, B: Parameterize, C: Parameterize,

source§

impl Parameterize for u64

source§

impl<A, B, C, D, E, F, G, H> Parameterize for (A, B, C, D, E, F, G, H)where A: Parameterize, B: Parameterize, C: Parameterize, D: Parameterize, E: Parameterize, F: Parameterize, G: Parameterize, H: Parameterize,

source§

impl<T, E> Parameterize for Result<T, E>where T: Parameterize, E: Parameterize,

source§

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

source§

impl Parameterize for ()

source§

impl<A, B, C, D, E, F> Parameterize for (A, B, C, D, E, F)where A: Parameterize, B: Parameterize, C: Parameterize, D: Parameterize, E: Parameterize, F: Parameterize,

source§

impl Parameterize for u16

source§

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

source§

impl Parameterize for u128

source§

impl<T> Parameterize for Option<T>where T: Parameterize,

source§

impl<A, B, C, D, E, F, G> Parameterize for (A, B, C, D, E, F, G)where A: Parameterize, B: Parameterize, C: Parameterize, D: Parameterize, E: Parameterize, F: Parameterize, G: Parameterize,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl Parameterize for u32

source§

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

source§

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

source§

impl Parameterize for bool

source§

impl<A, B, C, D, E> Parameterize for (A, B, C, D, E)where A: Parameterize, B: Parameterize, C: Parameterize, D: Parameterize, E: Parameterize,

source§

impl<A, B, C, D> Parameterize for (A, B, C, D)where A: Parameterize, B: Parameterize, C: Parameterize, D: Parameterize,

source§

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

source§

impl<T: Parameterize> Parameterize for Vec<T>

Implementors§