Struct tetsy_scale_codec::Compact[][src]

pub struct Compact<T>(pub T);

Compact-encoded variant of T. This is more space-efficient but less compute-efficient.

Trait Implementations

impl<T: Clone> Clone for Compact<T>[src]

impl CompactLen<u128> for Compact<u128>[src]

impl CompactLen<u16> for Compact<u16>[src]

impl CompactLen<u32> for Compact<u32>[src]

impl CompactLen<u64> for Compact<u64>[src]

impl CompactLen<u8> for Compact<u8>[src]

impl<T: Copy> Copy for Compact<T>[src]

impl<T> Debug for Compact<T> where
    T: Debug

impl<T> Decode for Compact<T> where
    T: CompactAs,
    Compact<T::As>: Decode

impl Decode for Compact<()>[src]

impl Decode for Compact<u8>[src]

impl Decode for Compact<u16>[src]

impl Decode for Compact<u32>[src]

impl Decode for Compact<u64>[src]

impl Decode for Compact<u128>[src]

impl<'de, T> Deserialize<'de> for Compact<T> where
    T: Deserialize<'de>, 

impl<T> Encode for Compact<T> where
    CompactRef<'a, T>: Encode

impl<'a, T: 'a> EncodeAsRef<'a, T> for Compact<T> where
    CompactRef<'a, T>: Encode + From<&'a T>, 

type RefType = CompactRef<'a, T>

The reference type that is used for encoding.

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

impl<T: Eq> Eq for Compact<T>[src]

impl<'a, T: Copy> From<&'a T> for Compact<T>[src]

impl<T> From<T> for Compact<T>[src]

impl<T: Ord> Ord for Compact<T>[src]

impl<T: PartialEq> PartialEq<Compact<T>> for Compact<T>[src]

impl<T: PartialOrd> PartialOrd<Compact<T>> for Compact<T>[src]

impl<T> Serialize for Compact<T> where
    T: Serialize

impl<T> StructuralEq for Compact<T>[src]

impl<T> StructuralPartialEq for Compact<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Compact<T> where
    T: RefUnwindSafe

impl<T> Send for Compact<T> where
    T: Send

impl<T> Sync for Compact<T> where
    T: Sync

impl<T> Unpin for Compact<T> where
    T: Unpin

impl<T> UnwindSafe for Compact<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Conv for T

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> FmtForward for T

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.