pub struct SerializedProof {
pub indices: Vec<NodeIndex>,
pub chunks: Vec<u8>,
}
Expand description
A serializable represenation of a Proof
.
Fields§
§indices: Vec<NodeIndex>
§chunks: Vec<u8>
Trait Implementations§
Source§impl Clone for SerializedProof
impl Clone for SerializedProof
Source§fn clone(&self) -> SerializedProof
fn clone(&self) -> SerializedProof
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SerializedProof
impl Debug for SerializedProof
Source§impl Decode for SerializedProof
impl Decode for SerializedProof
Source§fn is_ssz_fixed_len() -> bool
fn is_ssz_fixed_len() -> bool
Returns
true
if this object has a fixed-length. Read moreSource§fn ssz_fixed_len() -> usize
fn ssz_fixed_len() -> usize
The number of bytes this object occupies in the fixed-length portion of the SSZ bytes. Read more
Source§fn from_ssz_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
fn from_ssz_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
Source§impl Default for SerializedProof
impl Default for SerializedProof
Source§fn default() -> SerializedProof
fn default() -> SerializedProof
Returns the “default value” for a type. Read more
Source§impl Encode for SerializedProof
impl Encode for SerializedProof
Source§fn is_ssz_fixed_len() -> bool
fn is_ssz_fixed_len() -> bool
Returns
true
if this object has a fixed-length. Read moreSource§fn ssz_fixed_len() -> usize
fn ssz_fixed_len() -> usize
The number of bytes this object occupies in the fixed-length portion of the SSZ bytes. Read more
Source§impl PartialEq for SerializedProof
impl PartialEq for SerializedProof
Auto Trait Implementations§
impl Freeze for SerializedProof
impl RefUnwindSafe for SerializedProof
impl Send for SerializedProof
impl Sync for SerializedProof
impl Unpin for SerializedProof
impl UnwindSafe for SerializedProof
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more