[−][src]Struct ssz::CompactRef
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]
T: PartialEq<T>,
fn eq(&self, other: &CompactRef<'a, T>) -> bool
[src]
fn ne(&self, other: &CompactRef<'a, T>) -> bool
[src]
impl<'a, T> Debug for CompactRef<'a, T> where
T: Debug,
[src]
T: Debug,
impl<'a, T, ML> IntoTree for CompactRef<'a, MaxVec<T, ML>> where
ML: Unsigned,
ElementalVariableVecRef<'b, T>: IntoCompactListTree,
[src]
ML: Unsigned,
ElementalVariableVecRef<'b, T>: IntoCompactListTree,
fn into_tree<DB>(
&self,
db: &mut DB
) -> Result<Value<<<DB as Backend>::Construct as Construct>::Intermediate, <<DB as Backend>::Construct as Construct>::End>, Error<<DB as Backend>::Error>> where
DB: WriteBackend,
<DB as Backend>::Construct: CompatibleConstruct,
[src]
&self,
db: &mut DB
) -> Result<Value<<<DB as Backend>::Construct as Construct>::Intermediate, <<DB as Backend>::Construct as Construct>::End>, Error<<DB as Backend>::Error>> where
DB: WriteBackend,
<DB as Backend>::Construct: CompatibleConstruct,
impl<'a, T, L> IntoTree for CompactRef<'a, VecArray<T, L>> where
L: Unsigned,
ElementalFixedVecRef<'b, T>: IntoCompactVectorTree,
[src]
L: Unsigned,
ElementalFixedVecRef<'b, T>: IntoCompactVectorTree,
fn into_tree<DB>(
&self,
db: &mut DB
) -> Result<Value<<<DB as Backend>::Construct as Construct>::Intermediate, <<DB as Backend>::Construct as Construct>::End>, Error<<DB as Backend>::Error>> where
DB: WriteBackend,
<DB as Backend>::Construct: CompatibleConstruct,
[src]
&self,
db: &mut DB
) -> Result<Value<<<DB as Backend>::Construct as Construct>::Intermediate, <<DB as Backend>::Construct as Construct>::End>, Error<<DB as Backend>::Error>> where
DB: WriteBackend,
<DB as Backend>::Construct: CompatibleConstruct,
impl<'a, T, L> IntoTree for CompactRef<'a, GenericArray<T, L>> where
L: ArrayLength<T>,
ElementalFixedVecRef<'b, T>: IntoCompactVectorTree,
[src]
L: ArrayLength<T>,
ElementalFixedVecRef<'b, T>: IntoCompactVectorTree,
fn into_tree<DB>(
&self,
db: &mut DB
) -> Result<Value<<<DB as Backend>::Construct as Construct>::Intermediate, <<DB as Backend>::Construct as Construct>::End>, Error<<DB as Backend>::Error>> where
DB: WriteBackend,
<DB as Backend>::Construct: CompatibleConstruct,
[src]
&self,
db: &mut DB
) -> Result<Value<<<DB as Backend>::Construct as Construct>::Intermediate, <<DB as Backend>::Construct as Construct>::End>, Error<<DB as Backend>::Error>> where
DB: WriteBackend,
<DB as Backend>::Construct: CompatibleConstruct,
impl<'a, T> Eq for CompactRef<'a, T> where
T: Eq,
[src]
T: Eq,
impl<'a, L: ArrayLength<u8> + Unsigned> Codec for CompactRef<'a, GenericArray<u8, L>> where
Compact<GenericArray<u8, L>>: Codec,
[src]
Compact<GenericArray<u8, L>>: Codec,
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]
Compact<VecArray<u8, L>>: Codec,
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]
Compact<GenericArray<u16, L>>: Codec,
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]
Compact<VecArray<u16, L>>: Codec,
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]
Compact<GenericArray<u32, L>>: Codec,
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]
Compact<VecArray<u32, L>>: Codec,
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]
Compact<GenericArray<u64, L>>: Codec,
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]
Compact<VecArray<u64, L>>: Codec,
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]
Compact<GenericArray<u128, L>>: Codec,
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]
Compact<VecArray<u128, L>>: Codec,
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]
Compact<GenericArray<bool, L>>: Codec,
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]
Compact<VecArray<bool, L>>: Codec,
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]
CompactRef<'a, GenericArray<u8, L>>: Codec,
fn encode(&self) -> Vec<u8>
[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]
CompactRef<'a, VecArray<u8, L>>: Codec,
fn encode(&self) -> Vec<u8>
[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]
CompactRef<'a, GenericArray<u16, L>>: Codec,
fn encode(&self) -> Vec<u8>
[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]
CompactRef<'a, VecArray<u16, L>>: Codec,
fn encode(&self) -> Vec<u8>
[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]
CompactRef<'a, GenericArray<u32, L>>: Codec,
fn encode(&self) -> Vec<u8>
[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]
CompactRef<'a, VecArray<u32, L>>: Codec,
fn encode(&self) -> Vec<u8>
[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]
CompactRef<'a, GenericArray<u64, L>>: Codec,
fn encode(&self) -> Vec<u8>
[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]
CompactRef<'a, VecArray<u64, L>>: Codec,
fn encode(&self) -> Vec<u8>
[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]
CompactRef<'a, GenericArray<u128, L>>: Codec,
fn encode(&self) -> Vec<u8>
[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]
CompactRef<'a, VecArray<u128, L>>: Codec,
fn encode(&self) -> Vec<u8>
[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]
CompactRef<'a, GenericArray<bool, L>>: Codec,
fn encode(&self) -> Vec<u8>
[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]
CompactRef<'a, VecArray<bool, L>>: Codec,
fn encode(&self) -> Vec<u8>
[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 encode(&self) -> Vec<u8>
[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 encode(&self) -> Vec<u8>
[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 encode(&self) -> Vec<u8>
[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 encode(&self) -> Vec<u8>
[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 encode(&self) -> Vec<u8>
[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]
Auto Trait Implementations
impl<'a, T> Sync for CompactRef<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Send for CompactRef<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for CompactRef<'a, T>
impl<'a, T> RefUnwindSafe for CompactRef<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> UnwindSafe for CompactRef<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self