Trait sp_runtime_interface::RIType [−][src]
pub trait RIType {
type FFIType: IntoValue + TryFromValue;
}Something that can be used by the runtime interface as type to communicate between wasm and the host.
Every type that should be used in a runtime interface function signature needs to implement this trait.
Associated Types
type FFIType: IntoValue + TryFromValue[src]
The ffi type that is used to represent Self.
Implementations on Foreign Types
impl<T> RIType for Vec<T>[src]
impl<T> RIType for Vec<T>[src]The type is passed as u64.
The u64 value is build by length 32bit << 32 | pointer 32bit
If T == u8 the length and the pointer are taken directly from Self.
Otherwise Self is encoded and the length and the pointer are taken from the encoded vector.
impl<T> RIType for [T][src]
impl<T> RIType for [T][src]The type is passed as u64.
The u64 value is build by length 32bit << 32 | pointer 32bit
If T == u8 the length and the pointer are taken directly from Self.
Otherwise Self is encoded and the length and the pointer are taken from the encoded vector.
impl RIType for [u8; 1][src]
impl RIType for [u8; 1][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 2][src]
impl RIType for [u8; 2][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 3][src]
impl RIType for [u8; 3][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 4][src]
impl RIType for [u8; 4][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 5][src]
impl RIType for [u8; 5][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 6][src]
impl RIType for [u8; 6][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 7][src]
impl RIType for [u8; 7][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 8][src]
impl RIType for [u8; 8][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 9][src]
impl RIType for [u8; 9][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 10][src]
impl RIType for [u8; 10][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 11][src]
impl RIType for [u8; 11][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 12][src]
impl RIType for [u8; 12][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 13][src]
impl RIType for [u8; 13][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 14][src]
impl RIType for [u8; 14][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 15][src]
impl RIType for [u8; 15][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 16][src]
impl RIType for [u8; 16][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 17][src]
impl RIType for [u8; 17][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 18][src]
impl RIType for [u8; 18][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 19][src]
impl RIType for [u8; 19][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 20][src]
impl RIType for [u8; 20][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 21][src]
impl RIType for [u8; 21][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 22][src]
impl RIType for [u8; 22][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 23][src]
impl RIType for [u8; 23][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 24][src]
impl RIType for [u8; 24][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 25][src]
impl RIType for [u8; 25][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 26][src]
impl RIType for [u8; 26][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 27][src]
impl RIType for [u8; 27][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 28][src]
impl RIType for [u8; 28][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 29][src]
impl RIType for [u8; 29][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 30][src]
impl RIType for [u8; 30][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 31][src]
impl RIType for [u8; 31][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 32][src]
impl RIType for [u8; 32][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 33][src]
impl RIType for [u8; 33][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 34][src]
impl RIType for [u8; 34][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 35][src]
impl RIType for [u8; 35][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 36][src]
impl RIType for [u8; 36][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 37][src]
impl RIType for [u8; 37][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 38][src]
impl RIType for [u8; 38][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 39][src]
impl RIType for [u8; 39][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 40][src]
impl RIType for [u8; 40][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 41][src]
impl RIType for [u8; 41][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 42][src]
impl RIType for [u8; 42][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 43][src]
impl RIType for [u8; 43][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 44][src]
impl RIType for [u8; 44][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 45][src]
impl RIType for [u8; 45][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 46][src]
impl RIType for [u8; 46][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 47][src]
impl RIType for [u8; 47][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 48][src]
impl RIType for [u8; 48][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 49][src]
impl RIType for [u8; 49][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 50][src]
impl RIType for [u8; 50][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 51][src]
impl RIType for [u8; 51][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 52][src]
impl RIType for [u8; 52][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 53][src]
impl RIType for [u8; 53][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 54][src]
impl RIType for [u8; 54][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 55][src]
impl RIType for [u8; 55][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 56][src]
impl RIType for [u8; 56][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 57][src]
impl RIType for [u8; 57][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 58][src]
impl RIType for [u8; 58][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 59][src]
impl RIType for [u8; 59][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 60][src]
impl RIType for [u8; 60][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 61][src]
impl RIType for [u8; 61][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 62][src]
impl RIType for [u8; 62][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 63][src]
impl RIType for [u8; 63][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 64][src]
impl RIType for [u8; 64][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 65][src]
impl RIType for [u8; 65][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 66][src]
impl RIType for [u8; 66][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 67][src]
impl RIType for [u8; 67][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 68][src]
impl RIType for [u8; 68][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 69][src]
impl RIType for [u8; 69][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 70][src]
impl RIType for [u8; 70][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 71][src]
impl RIType for [u8; 71][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 72][src]
impl RIType for [u8; 72][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 73][src]
impl RIType for [u8; 73][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 74][src]
impl RIType for [u8; 74][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 75][src]
impl RIType for [u8; 75][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 76][src]
impl RIType for [u8; 76][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 77][src]
impl RIType for [u8; 77][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 78][src]
impl RIType for [u8; 78][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 79][src]
impl RIType for [u8; 79][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 80][src]
impl RIType for [u8; 80][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 81][src]
impl RIType for [u8; 81][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 82][src]
impl RIType for [u8; 82][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 83][src]
impl RIType for [u8; 83][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 84][src]
impl RIType for [u8; 84][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 85][src]
impl RIType for [u8; 85][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 86][src]
impl RIType for [u8; 86][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 87][src]
impl RIType for [u8; 87][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 88][src]
impl RIType for [u8; 88][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 89][src]
impl RIType for [u8; 89][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 90][src]
impl RIType for [u8; 90][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 91][src]
impl RIType for [u8; 91][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 92][src]
impl RIType for [u8; 92][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 93][src]
impl RIType for [u8; 93][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 94][src]
impl RIType for [u8; 94][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 95][src]
impl RIType for [u8; 95][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for [u8; 96][src]
impl RIType for [u8; 96][src]The type is passed as u32.
The u32 is the pointer to the array.
impl RIType for str[src]
impl RIType for str[src]The type is passed as u64.
The u64 value is build by length 32bit << 32 | pointer 32bit
The length and the pointer are taken directly from Self.
impl RIType for u128[src]
impl RIType for u128[src]u128/i128 is passed as u32.
The u32 is a pointer to an [u8; 16] array.
impl RIType for i128[src]
impl RIType for i128[src]u128/i128 is passed as u32.
The u32 is a pointer to an [u8; 16] array.
Implementors
impl<T: Codec> RIType for Codec<T>[src]
impl<T: Codec> RIType for Codec<T>[src]The type is passed as u64.
The u64 value is build by length 32bit << 32 | pointer 32bit
Self is encoded and the length and the pointer are taken from the encoded vector.