WithAbiType

Trait WithAbiType 

Source
pub trait WithAbiType {
    // Required method
    fn abi_type() -> AbiType;
}
Expand description

A type with a known ABI type.

Required Methods§

Source

fn abi_type() -> AbiType

Returns a corresponding ABI type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WithAbiType for bool

Source§

impl WithAbiType for i8

Source§

impl WithAbiType for i16

Source§

impl WithAbiType for i32

Source§

impl WithAbiType for i64

Source§

impl WithAbiType for i128

Source§

impl WithAbiType for str

Source§

impl WithAbiType for u8

Source§

impl WithAbiType for u16

Source§

impl WithAbiType for u32

Source§

impl WithAbiType for u64

Source§

impl WithAbiType for u128

Source§

impl WithAbiType for ()

Source§

impl WithAbiType for String

Source§

impl WithAbiType for Bytes

Source§

impl<K: WithPlainAbiType, V: WithAbiType> WithAbiType for BTreeMap<K, V>

Source§

impl<K: WithPlainAbiType, V: WithAbiType, S> WithAbiType for HashMap<K, V, S>

Source§

impl<T0: WithAbiType> WithAbiType for (T0,)

Source§

impl<T0: WithAbiType, T1: WithAbiType> WithAbiType for (T0, T1)

Source§

impl<T0: WithAbiType, T1: WithAbiType, T2: WithAbiType> WithAbiType for (T0, T1, T2)

Source§

impl<T0: WithAbiType, T1: WithAbiType, T2: WithAbiType, T3: WithAbiType> WithAbiType for (T0, T1, T2, T3)

Source§

impl<T0: WithAbiType, T1: WithAbiType, T2: WithAbiType, T3: WithAbiType, T4: WithAbiType> WithAbiType for (T0, T1, T2, T3, T4)

Source§

impl<T0: WithAbiType, T1: WithAbiType, T2: WithAbiType, T3: WithAbiType, T4: WithAbiType, T5: WithAbiType> WithAbiType for (T0, T1, T2, T3, T4, T5)

Source§

impl<T0: WithAbiType, T1: WithAbiType, T2: WithAbiType, T3: WithAbiType, T4: WithAbiType, T5: WithAbiType, T6: WithAbiType> WithAbiType for (T0, T1, T2, T3, T4, T5, T6)

Source§

impl<T: WithAbiType> WithAbiType for Option<T>

Source§

impl<T: WithAbiType> WithAbiType for &T

Source§

impl<T: WithAbiType> WithAbiType for &mut T

Source§

impl<T: WithAbiType> WithAbiType for [T]

Source§

impl<T: WithAbiType> WithAbiType for Box<T>

Source§

impl<T: WithAbiType> WithAbiType for Rc<T>

Source§

impl<T: WithAbiType> WithAbiType for Arc<T>

Source§

impl<T: WithAbiType> WithAbiType for Vec<T>

Source§

impl<T: WithAbiType, const N: usize> WithAbiType for [T; N]

Implementors§