[][src]Struct ssz::CompactRef

pub struct CompactRef<'a, T>(pub &'a T)
where
    T: 'a
;

Indicate that the current value should be serialized and deserialized in Compact format. Reference form.

Trait Implementations

impl<'a, T> PartialEq<CompactRef<'a, T>> for CompactRef<'a, T> where
    T: PartialEq<T>, 
[src]

impl<'a, T> Debug for CompactRef<'a, T> where
    T: Debug
[src]

impl<'a, T, ML> IntoTree for CompactRef<'a, MaxVec<T, ML>> where
    ML: Unsigned,
    ElementalVariableVecRef<'b, T>: IntoCompactListTree
[src]

impl<'a, T, L> IntoTree for CompactRef<'a, VecArray<T, L>> where
    L: Unsigned,
    ElementalFixedVecRef<'b, T>: IntoCompactVectorTree
[src]

impl<'a, T, L> IntoTree for CompactRef<'a, GenericArray<T, L>> where
    L: ArrayLength<T>,
    ElementalFixedVecRef<'b, T>: IntoCompactVectorTree
[src]

impl<'a, T> Eq for CompactRef<'a, T> where
    T: Eq
[src]

impl<'a, L: ArrayLength<u8> + Unsigned> Codec for CompactRef<'a, GenericArray<u8, L>> where
    Compact<GenericArray<u8, L>>: Codec
[src]

type Size = <Compact<GenericArray<u8, L>> as Codec>::Size

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, L: Unsigned> Codec for CompactRef<'a, VecArray<u8, L>> where
    Compact<VecArray<u8, L>>: Codec
[src]

type Size = <Compact<VecArray<u8, L>> as Codec>::Size

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, L: ArrayLength<u16> + Unsigned> Codec for CompactRef<'a, GenericArray<u16, L>> where
    Compact<GenericArray<u16, L>>: Codec
[src]

type Size = <Compact<GenericArray<u16, L>> as Codec>::Size

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, L: Unsigned> Codec for CompactRef<'a, VecArray<u16, L>> where
    Compact<VecArray<u16, L>>: Codec
[src]

type Size = <Compact<VecArray<u16, L>> as Codec>::Size

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, L: ArrayLength<u32> + Unsigned> Codec for CompactRef<'a, GenericArray<u32, L>> where
    Compact<GenericArray<u32, L>>: Codec
[src]

type Size = <Compact<GenericArray<u32, L>> as Codec>::Size

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, L: Unsigned> Codec for CompactRef<'a, VecArray<u32, L>> where
    Compact<VecArray<u32, L>>: Codec
[src]

type Size = <Compact<VecArray<u32, L>> as Codec>::Size

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, L: ArrayLength<u64> + Unsigned> Codec for CompactRef<'a, GenericArray<u64, L>> where
    Compact<GenericArray<u64, L>>: Codec
[src]

type Size = <Compact<GenericArray<u64, L>> as Codec>::Size

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, L: Unsigned> Codec for CompactRef<'a, VecArray<u64, L>> where
    Compact<VecArray<u64, L>>: Codec
[src]

type Size = <Compact<VecArray<u64, L>> as Codec>::Size

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, L: ArrayLength<u128> + Unsigned> Codec for CompactRef<'a, GenericArray<u128, L>> where
    Compact<GenericArray<u128, L>>: Codec
[src]

type Size = <Compact<GenericArray<u128, L>> as Codec>::Size

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, L: Unsigned> Codec for CompactRef<'a, VecArray<u128, L>> where
    Compact<VecArray<u128, L>>: Codec
[src]

type Size = <Compact<VecArray<u128, L>> as Codec>::Size

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, L: ArrayLength<bool> + Unsigned> Codec for CompactRef<'a, GenericArray<bool, L>> where
    Compact<GenericArray<bool, L>>: Codec
[src]

type Size = <Compact<GenericArray<bool, L>> as Codec>::Size

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, L: Unsigned> Codec for CompactRef<'a, VecArray<bool, L>> where
    Compact<VecArray<bool, L>>: Codec
[src]

type Size = <Compact<VecArray<bool, L>> as Codec>::Size

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, T, ML> Codec for CompactRef<'a, MaxVec<T, ML>>[src]

type Size = VariableSize

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<'a, L: ArrayLength<u8>> Encode for CompactRef<'a, GenericArray<u8, L>> where
    CompactRef<'a, GenericArray<u8, L>>: Codec
[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, L: Unsigned> Encode for CompactRef<'a, VecArray<u8, L>> where
    CompactRef<'a, VecArray<u8, L>>: Codec
[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, L: ArrayLength<u16>> Encode for CompactRef<'a, GenericArray<u16, L>> where
    CompactRef<'a, GenericArray<u16, L>>: Codec
[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, L: Unsigned> Encode for CompactRef<'a, VecArray<u16, L>> where
    CompactRef<'a, VecArray<u16, L>>: Codec
[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, L: ArrayLength<u32>> Encode for CompactRef<'a, GenericArray<u32, L>> where
    CompactRef<'a, GenericArray<u32, L>>: Codec
[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, L: Unsigned> Encode for CompactRef<'a, VecArray<u32, L>> where
    CompactRef<'a, VecArray<u32, L>>: Codec
[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, L: ArrayLength<u64>> Encode for CompactRef<'a, GenericArray<u64, L>> where
    CompactRef<'a, GenericArray<u64, L>>: Codec
[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, L: Unsigned> Encode for CompactRef<'a, VecArray<u64, L>> where
    CompactRef<'a, VecArray<u64, L>>: Codec
[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, L: ArrayLength<u128>> Encode for CompactRef<'a, GenericArray<u128, L>> where
    CompactRef<'a, GenericArray<u128, L>>: Codec
[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, L: Unsigned> Encode for CompactRef<'a, VecArray<u128, L>> where
    CompactRef<'a, VecArray<u128, L>>: Codec
[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, L: ArrayLength<bool>> Encode for CompactRef<'a, GenericArray<bool, L>> where
    CompactRef<'a, GenericArray<bool, L>>: Codec
[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, L: Unsigned> Encode for CompactRef<'a, VecArray<bool, L>> where
    CompactRef<'a, VecArray<bool, L>>: Codec
[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, ML> Encode for CompactRef<'a, MaxVec<u8, ML>>[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, ML> Encode for CompactRef<'a, MaxVec<u16, ML>>[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, ML> Encode for CompactRef<'a, MaxVec<u32, ML>>[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, ML> Encode for CompactRef<'a, MaxVec<u64, ML>>[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, ML> Encode for CompactRef<'a, MaxVec<u128, ML>>[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

impl<'a, ML> Encode for CompactRef<'a, MaxVec<bool, ML>>[src]

fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R[src]

Convert self to a slice and then invoke the given closure with it.

Auto Trait Implementations

impl<'a, T> Sync for CompactRef<'a, T> where
    T: Sync

impl<'a, T> Send for CompactRef<'a, T> where
    T: Sync

impl<'a, T> Unpin for CompactRef<'a, T>

impl<'a, T> RefUnwindSafe for CompactRef<'a, T> where
    T: RefUnwindSafe

impl<'a, T> UnwindSafe for CompactRef<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

type Output = T

Should always be Self