[][src]Trait parity_scale_codec::EncodeLike

pub trait EncodeLike<T: Encode = Self>: Sized + Encode { }

A marker trait that tells the compiler that a type encode to the same representation as another type.

E.g. Vec<u8> has the same encoded representation as &[u8].

Example

fn encode_like<T: Encode, R: EncodeLike<T>>(data: &R) {
    data.encode(); // Valid `T` encoded value.
}

fn main() {
    // Just pass the a reference to the normal tuple.
    encode_like::<(u32, u32), _>(&(1u32, 2u32));
    // Pass a tuple of references
    encode_like::<(u32, u32), _>(&(&1u32, &2u32));
    // Pass a tuple of a reference and a value.
    encode_like::<(u32, u32), _>(&(&1u32, 2u32));
}

Warning

The relation is not symetric, T implements EncodeLike<U> does not mean U has same representation as T. For instance we could imaging a non zero integer to be encoded to the same representation as the said integer but not the other way around.

Limitation

Not all possible implementations of EncodeLike are implemented (for instance Box<Box<u32>> does not implement EncodeLike<u32>). To bypass this issue either open a PR to add the new combination or use Ref reference wrapper or define your own wrapper and implement EncodeLike on it as such:

fn encode_like<T: Encode, R: EncodeLike<T>>(data: &R) {
    data.encode(); // Valid `T` encoded value.
}

struct MyWrapper<'a>(&'a (Box<Box<u32>>, u32));
impl<'a> core::ops::Deref for MyWrapper<'a> { // Or use derive_deref crate
    type Target = (Box<Box<u32>>, u32);
    fn deref(&self) -> &Self::Target { &self.0 }
}

impl<'a> parity_scale_codec::WrapperTypeEncode for MyWrapper<'a> {}
impl<'a> parity_scale_codec::EncodeLike<(u32, u32)> for MyWrapper<'a> {}

fn main() {
    let v = (Box::new(Box::new(0)), 0);
    encode_like::<(u32, u32), _>(&MyWrapper(&v));
}

Implementations on Foreign Types

impl<T: ?Sized + Encode> EncodeLike<Box<T>> for Box<T>[src]

impl<T: Encode> EncodeLike<T> for Box<T>[src]

impl<T: ?Sized + Encode, '_> EncodeLike<&'_ T> for &'_ T[src]

impl<T: Encode, '_> EncodeLike<T> for &'_ T[src]

impl<T: Encode, '_, '_> EncodeLike<T> for &'_ &'_ T[src]

impl<T: ?Sized + Encode, '_> EncodeLike<&'_ mut T> for &'_ mut T[src]

impl<T: Encode, '_> EncodeLike<T> for &'_ mut T[src]

impl<'a, T: ToOwned + Encode + ?Sized> EncodeLike<Cow<'a, T>> for Cow<'a, T>[src]

impl<'a, T: ToOwned + Encode> EncodeLike<T> for Cow<'a, T>[src]

impl<T: ?Sized + Encode> EncodeLike<Arc<T>> for Arc<T>[src]

impl<T: Encode> EncodeLike<T> for Arc<T>[src]

impl<T: ?Sized + Encode> EncodeLike<Rc<T>> for Rc<T>[src]

impl<T: Encode> EncodeLike<T> for Rc<T>[src]

impl EncodeLike<String> for String[src]

impl<'_> EncodeLike<&'_ str> for String[src]

impl<'_> EncodeLike<String> for &'_ str[src]

impl<T, LikeT, E, LikeE> EncodeLike<Result<LikeT, LikeE>> for Result<T, E> where
    T: EncodeLike<LikeT>,
    LikeT: Encode,
    E: EncodeLike<LikeE>,
    LikeE: Encode
[src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<Option<U>> for Option<T>[src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 1]> for [T; 1][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 2]> for [T; 2][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 3]> for [T; 3][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 4]> for [T; 4][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 5]> for [T; 5][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 6]> for [T; 6][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 7]> for [T; 7][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 8]> for [T; 8][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 9]> for [T; 9][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 10]> for [T; 10][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 11]> for [T; 11][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 12]> for [T; 12][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 13]> for [T; 13][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 14]> for [T; 14][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 15]> for [T; 15][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 16]> for [T; 16][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 17]> for [T; 17][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 18]> for [T; 18][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 19]> for [T; 19][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 20]> for [T; 20][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 21]> for [T; 21][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 22]> for [T; 22][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 23]> for [T; 23][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 24]> for [T; 24][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 25]> for [T; 25][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 26]> for [T; 26][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 27]> for [T; 27][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 28]> for [T; 28][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 29]> for [T; 29][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 30]> for [T; 30][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 31]> for [T; 31][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 32]> for [T; 32][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 33]> for [T; 33][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 34]> for [T; 34][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 35]> for [T; 35][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 36]> for [T; 36][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 37]> for [T; 37][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 38]> for [T; 38][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 39]> for [T; 39][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 40]> for [T; 40][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 41]> for [T; 41][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 42]> for [T; 42][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 43]> for [T; 43][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 44]> for [T; 44][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 45]> for [T; 45][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 46]> for [T; 46][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 47]> for [T; 47][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 48]> for [T; 48][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 49]> for [T; 49][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 50]> for [T; 50][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 51]> for [T; 51][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 52]> for [T; 52][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 53]> for [T; 53][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 54]> for [T; 54][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 55]> for [T; 55][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 56]> for [T; 56][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 57]> for [T; 57][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 58]> for [T; 58][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 59]> for [T; 59][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 60]> for [T; 60][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 61]> for [T; 61][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 62]> for [T; 62][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 63]> for [T; 63][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 64]> for [T; 64][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 65]> for [T; 65][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 66]> for [T; 66][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 67]> for [T; 67][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 68]> for [T; 68][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 69]> for [T; 69][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 70]> for [T; 70][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 71]> for [T; 71][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 72]> for [T; 72][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 73]> for [T; 73][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 74]> for [T; 74][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 75]> for [T; 75][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 76]> for [T; 76][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 77]> for [T; 77][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 78]> for [T; 78][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 79]> for [T; 79][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 80]> for [T; 80][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 81]> for [T; 81][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 82]> for [T; 82][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 83]> for [T; 83][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 84]> for [T; 84][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 85]> for [T; 85][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 86]> for [T; 86][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 87]> for [T; 87][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 88]> for [T; 88][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 89]> for [T; 89][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 90]> for [T; 90][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 91]> for [T; 91][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 92]> for [T; 92][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 93]> for [T; 93][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 94]> for [T; 94][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 95]> for [T; 95][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 96]> for [T; 96][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 97]> for [T; 97][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 98]> for [T; 98][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 99]> for [T; 99][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 100]> for [T; 100][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 101]> for [T; 101][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 102]> for [T; 102][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 103]> for [T; 103][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 104]> for [T; 104][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 105]> for [T; 105][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 106]> for [T; 106][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 107]> for [T; 107][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 108]> for [T; 108][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 109]> for [T; 109][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 110]> for [T; 110][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 111]> for [T; 111][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 112]> for [T; 112][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 113]> for [T; 113][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 114]> for [T; 114][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 115]> for [T; 115][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 116]> for [T; 116][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 117]> for [T; 117][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 118]> for [T; 118][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 119]> for [T; 119][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 120]> for [T; 120][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 121]> for [T; 121][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 122]> for [T; 122][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 123]> for [T; 123][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 124]> for [T; 124][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 125]> for [T; 125][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 126]> for [T; 126][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 127]> for [T; 127][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 128]> for [T; 128][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 129]> for [T; 129][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 130]> for [T; 130][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 131]> for [T; 131][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 132]> for [T; 132][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 133]> for [T; 133][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 134]> for [T; 134][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 135]> for [T; 135][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 136]> for [T; 136][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 137]> for [T; 137][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 138]> for [T; 138][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 139]> for [T; 139][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 140]> for [T; 140][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 141]> for [T; 141][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 142]> for [T; 142][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 143]> for [T; 143][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 144]> for [T; 144][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 145]> for [T; 145][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 146]> for [T; 146][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 147]> for [T; 147][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 148]> for [T; 148][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 149]> for [T; 149][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 150]> for [T; 150][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 151]> for [T; 151][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 152]> for [T; 152][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 153]> for [T; 153][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 154]> for [T; 154][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 155]> for [T; 155][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 156]> for [T; 156][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 157]> for [T; 157][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 158]> for [T; 158][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 159]> for [T; 159][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 160]> for [T; 160][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 161]> for [T; 161][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 162]> for [T; 162][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 163]> for [T; 163][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 164]> for [T; 164][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 165]> for [T; 165][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 166]> for [T; 166][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 167]> for [T; 167][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 168]> for [T; 168][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 169]> for [T; 169][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 170]> for [T; 170][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 171]> for [T; 171][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 172]> for [T; 172][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 173]> for [T; 173][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 174]> for [T; 174][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 175]> for [T; 175][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 176]> for [T; 176][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 177]> for [T; 177][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 178]> for [T; 178][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 179]> for [T; 179][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 180]> for [T; 180][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 181]> for [T; 181][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 182]> for [T; 182][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 183]> for [T; 183][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 184]> for [T; 184][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 185]> for [T; 185][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 186]> for [T; 186][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 187]> for [T; 187][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 188]> for [T; 188][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 189]> for [T; 189][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 190]> for [T; 190][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 191]> for [T; 191][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 192]> for [T; 192][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 193]> for [T; 193][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 194]> for [T; 194][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 195]> for [T; 195][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 196]> for [T; 196][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 197]> for [T; 197][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 198]> for [T; 198][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 199]> for [T; 199][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 200]> for [T; 200][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 201]> for [T; 201][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 202]> for [T; 202][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 203]> for [T; 203][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 204]> for [T; 204][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 205]> for [T; 205][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 206]> for [T; 206][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 207]> for [T; 207][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 208]> for [T; 208][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 209]> for [T; 209][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 210]> for [T; 210][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 211]> for [T; 211][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 212]> for [T; 212][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 213]> for [T; 213][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 214]> for [T; 214][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 215]> for [T; 215][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 216]> for [T; 216][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 217]> for [T; 217][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 218]> for [T; 218][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 219]> for [T; 219][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 220]> for [T; 220][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 221]> for [T; 221][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 222]> for [T; 222][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 223]> for [T; 223][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 224]> for [T; 224][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 225]> for [T; 225][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 226]> for [T; 226][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 227]> for [T; 227][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 228]> for [T; 228][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 229]> for [T; 229][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 230]> for [T; 230][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 231]> for [T; 231][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 232]> for [T; 232][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 233]> for [T; 233][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 234]> for [T; 234][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 235]> for [T; 235][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 236]> for [T; 236][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 237]> for [T; 237][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 238]> for [T; 238][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 239]> for [T; 239][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 240]> for [T; 240][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 241]> for [T; 241][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 242]> for [T; 242][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 243]> for [T; 243][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 244]> for [T; 244][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 245]> for [T; 245][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 246]> for [T; 246][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 247]> for [T; 247][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 248]> for [T; 248][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 249]> for [T; 249][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 250]> for [T; 250][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 251]> for [T; 251][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 252]> for [T; 252][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 253]> for [T; 253][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 254]> for [T; 254][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 255]> for [T; 255][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 256]> for [T; 256][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 384]> for [T; 384][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 512]> for [T; 512][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 768]> for [T; 768][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 1024]> for [T; 1024][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 2048]> for [T; 2048][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 4096]> for [T; 4096][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 8192]> for [T; 8192][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 16384]> for [T; 16384][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<[U; 32768]> for [T; 32768][src]

impl<T> EncodeLike<PhantomData<T>> for PhantomData<T>[src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<Vec<U>> for Vec<T>[src]

impl<T: EncodeLike<U>, U: Encode, '_> EncodeLike<&'_ [U]> for Vec<T>[src]

impl<T: EncodeLike<U>, U: Encode, '_> EncodeLike<Vec<U>> for &'_ [T][src]

impl<K: EncodeLike<LikeK>, LikeK: Encode, V: EncodeLike<LikeV>, LikeV: Encode> EncodeLike<BTreeMap<LikeK, LikeV>> for BTreeMap<K, V>[src]

impl<K: EncodeLike<LikeK>, LikeK: Encode, V: EncodeLike<LikeV>, LikeV: Encode, '_> EncodeLike<&'_ [(LikeK, LikeV)]> for BTreeMap<K, V>[src]

impl<K: EncodeLike<LikeK>, LikeK: Encode, V: EncodeLike<LikeV>, LikeV: Encode, '_> EncodeLike<BTreeMap<LikeK, LikeV>> for &'_ [(K, V)][src]

impl<T: EncodeLike<LikeT>, LikeT: Encode> EncodeLike<BTreeSet<LikeT>> for BTreeSet<T>[src]

impl<T: EncodeLike<LikeT>, LikeT: Encode, '_> EncodeLike<&'_ [(LikeT,)]> for BTreeSet<T>[src]

impl<T: EncodeLike<LikeT>, LikeT: Encode, '_> EncodeLike<BTreeSet<LikeT>> for &'_ [(T,)][src]

impl<T: EncodeLike<LikeT>, LikeT: Encode> EncodeLike<LinkedList<LikeT>> for LinkedList<T>[src]

impl<T: EncodeLike<LikeT>, LikeT: Encode, '_> EncodeLike<&'_ [(LikeT,)]> for LinkedList<T>[src]

impl<T: EncodeLike<LikeT>, LikeT: Encode, '_> EncodeLike<LinkedList<LikeT>> for &'_ [(T,)][src]

impl<T: EncodeLike<LikeT>, LikeT: Encode> EncodeLike<BinaryHeap<LikeT>> for BinaryHeap<T>[src]

impl<T: EncodeLike<LikeT>, LikeT: Encode, '_> EncodeLike<&'_ [(LikeT,)]> for BinaryHeap<T>[src]

impl<T: EncodeLike<LikeT>, LikeT: Encode, '_> EncodeLike<BinaryHeap<LikeT>> for &'_ [(T,)][src]

impl<T: Encode> EncodeLike<VecDeque<T>> for VecDeque<T>[src]

impl<T: EncodeLike<U>, U: Encode, '_> EncodeLike<&'_ [U]> for VecDeque<T>[src]

impl<T: EncodeLike<U>, U: Encode, '_> EncodeLike<VecDeque<U>> for &'_ [T][src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<Vec<U>> for VecDeque<T>[src]

impl<T: EncodeLike<U>, U: Encode> EncodeLike<VecDeque<U>> for Vec<T>[src]

impl EncodeLike<()> for ()[src]

impl<A0: EncodeLike<A1>, A1: Encode, B0: EncodeLike<B1>, B1: Encode, C0: EncodeLike<C1>, C1: Encode, D0: EncodeLike<D1>, D1: Encode, E0: EncodeLike<E1>, E1: Encode, F0: EncodeLike<F1>, F1: Encode, G0: EncodeLike<G1>, G1: Encode, H0: EncodeLike<H1>, H1: Encode, I0: EncodeLike<I1>, I1: Encode, J0: EncodeLike<J1>, J1: Encode, K0: EncodeLike<K1>, K1: Encode, L0: EncodeLike<L1>, L1: Encode, M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(A1, B1, C1, D1, E1, F1, G1, H1, I1, J1, K1, L1, M1, N1, O1, P1, Q1, R1)> for (A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)[src]

impl<B0: EncodeLike<B1>, B1: Encode, C0: EncodeLike<C1>, C1: Encode, D0: EncodeLike<D1>, D1: Encode, E0: EncodeLike<E1>, E1: Encode, F0: EncodeLike<F1>, F1: Encode, G0: EncodeLike<G1>, G1: Encode, H0: EncodeLike<H1>, H1: Encode, I0: EncodeLike<I1>, I1: Encode, J0: EncodeLike<J1>, J1: Encode, K0: EncodeLike<K1>, K1: Encode, L0: EncodeLike<L1>, L1: Encode, M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(B1, C1, D1, E1, F1, G1, H1, I1, J1, K1, L1, M1, N1, O1, P1, Q1, R1)> for (B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)[src]

impl<C0: EncodeLike<C1>, C1: Encode, D0: EncodeLike<D1>, D1: Encode, E0: EncodeLike<E1>, E1: Encode, F0: EncodeLike<F1>, F1: Encode, G0: EncodeLike<G1>, G1: Encode, H0: EncodeLike<H1>, H1: Encode, I0: EncodeLike<I1>, I1: Encode, J0: EncodeLike<J1>, J1: Encode, K0: EncodeLike<K1>, K1: Encode, L0: EncodeLike<L1>, L1: Encode, M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(C1, D1, E1, F1, G1, H1, I1, J1, K1, L1, M1, N1, O1, P1, Q1, R1)> for (C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)[src]

impl<D0: EncodeLike<D1>, D1: Encode, E0: EncodeLike<E1>, E1: Encode, F0: EncodeLike<F1>, F1: Encode, G0: EncodeLike<G1>, G1: Encode, H0: EncodeLike<H1>, H1: Encode, I0: EncodeLike<I1>, I1: Encode, J0: EncodeLike<J1>, J1: Encode, K0: EncodeLike<K1>, K1: Encode, L0: EncodeLike<L1>, L1: Encode, M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(D1, E1, F1, G1, H1, I1, J1, K1, L1, M1, N1, O1, P1, Q1, R1)> for (D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)[src]

impl<E0: EncodeLike<E1>, E1: Encode, F0: EncodeLike<F1>, F1: Encode, G0: EncodeLike<G1>, G1: Encode, H0: EncodeLike<H1>, H1: Encode, I0: EncodeLike<I1>, I1: Encode, J0: EncodeLike<J1>, J1: Encode, K0: EncodeLike<K1>, K1: Encode, L0: EncodeLike<L1>, L1: Encode, M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(E1, F1, G1, H1, I1, J1, K1, L1, M1, N1, O1, P1, Q1, R1)> for (E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)[src]

impl<F0: EncodeLike<F1>, F1: Encode, G0: EncodeLike<G1>, G1: Encode, H0: EncodeLike<H1>, H1: Encode, I0: EncodeLike<I1>, I1: Encode, J0: EncodeLike<J1>, J1: Encode, K0: EncodeLike<K1>, K1: Encode, L0: EncodeLike<L1>, L1: Encode, M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(F1, G1, H1, I1, J1, K1, L1, M1, N1, O1, P1, Q1, R1)> for (F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)[src]

impl<G0: EncodeLike<G1>, G1: Encode, H0: EncodeLike<H1>, H1: Encode, I0: EncodeLike<I1>, I1: Encode, J0: EncodeLike<J1>, J1: Encode, K0: EncodeLike<K1>, K1: Encode, L0: EncodeLike<L1>, L1: Encode, M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(G1, H1, I1, J1, K1, L1, M1, N1, O1, P1, Q1, R1)> for (G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)[src]

impl<H0: EncodeLike<H1>, H1: Encode, I0: EncodeLike<I1>, I1: Encode, J0: EncodeLike<J1>, J1: Encode, K0: EncodeLike<K1>, K1: Encode, L0: EncodeLike<L1>, L1: Encode, M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(H1, I1, J1, K1, L1, M1, N1, O1, P1, Q1, R1)> for (H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)[src]

impl<I0: EncodeLike<I1>, I1: Encode, J0: EncodeLike<J1>, J1: Encode, K0: EncodeLike<K1>, K1: Encode, L0: EncodeLike<L1>, L1: Encode, M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(I1, J1, K1, L1, M1, N1, O1, P1, Q1, R1)> for (I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)[src]

impl<J0: EncodeLike<J1>, J1: Encode, K0: EncodeLike<K1>, K1: Encode, L0: EncodeLike<L1>, L1: Encode, M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(J1, K1, L1, M1, N1, O1, P1, Q1, R1)> for (J0, K0, L0, M0, N0, O0, P0, Q0, R0)[src]

impl<K0: EncodeLike<K1>, K1: Encode, L0: EncodeLike<L1>, L1: Encode, M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(K1, L1, M1, N1, O1, P1, Q1, R1)> for (K0, L0, M0, N0, O0, P0, Q0, R0)[src]

impl<L0: EncodeLike<L1>, L1: Encode, M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(L1, M1, N1, O1, P1, Q1, R1)> for (L0, M0, N0, O0, P0, Q0, R0)[src]

impl<M0: EncodeLike<M1>, M1: Encode, N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(M1, N1, O1, P1, Q1, R1)> for (M0, N0, O0, P0, Q0, R0)[src]

impl<N0: EncodeLike<N1>, N1: Encode, O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(N1, O1, P1, Q1, R1)> for (N0, O0, P0, Q0, R0)[src]

impl<O0: EncodeLike<O1>, O1: Encode, P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(O1, P1, Q1, R1)> for (O0, P0, Q0, R0)[src]

impl<P0: EncodeLike<P1>, P1: Encode, Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(P1, Q1, R1)> for (P0, Q0, R0)[src]

impl<Q0: EncodeLike<Q1>, Q1: Encode, R0: EncodeLike<R1>, R1: Encode> EncodeLike<(Q1, R1)> for (Q0, R0)[src]

impl<R0: EncodeLike<R1>, R1: Encode> EncodeLike<(R1,)> for (R0,)[src]

impl EncodeLike<u16> for u16[src]

impl EncodeLike<u32> for u32[src]

impl EncodeLike<u64> for u64[src]

impl EncodeLike<u128> for u128[src]

impl EncodeLike<i16> for i16[src]

impl EncodeLike<i32> for i32[src]

impl EncodeLike<i64> for i64[src]

impl EncodeLike<i128> for i128[src]

impl EncodeLike<u8> for u8[src]

impl EncodeLike<i8> for i8[src]

impl EncodeLike<bool> for bool[src]

impl EncodeLike<Duration> for Duration[src]

Loading content...

Implementors

impl EncodeLike<OptionBool> for OptionBool[src]

impl<'a, T: EncodeLike<U>, U: Encode> EncodeLike<U> for Ref<'a, T, U>[src]

impl<'a, T: EncodeLike<U>, U: Encode, '_> EncodeLike<U> for &'_ Ref<'a, T, U>[src]

impl<'a, T: ToOwned + Encode> EncodeLike<Cow<'a, T>> for T[src]

impl<T> EncodeLike<Compact<T>> for Compact<T> where
    CompactRef<'a, T>: Encode
[src]

impl<T: Encode> EncodeLike<Box<T>> for T[src]

impl<T: Encode> EncodeLike<Rc<T>> for T[src]

impl<T: Encode> EncodeLike<Arc<T>> for T[src]

impl<T: Encode, '_> EncodeLike<&'_ T> for T[src]

impl<T: Encode, '_> EncodeLike<&'_ mut T> for T[src]

impl<T: Encode, '_, '_> EncodeLike<&'_ &'_ T> for T[src]

Loading content...