pub struct DirectHashesOrder {}
Expand description
Serializes proof data to bytes with a direct hash order - hashes are concatenated from left to right, bottom to top.
Trait Implementations§
source§impl MerkleProofSerializer for DirectHashesOrder
impl MerkleProofSerializer for DirectHashesOrder
source§fn serialize<T: Hasher>(proof: &MerkleProof<T>) -> Vec<u8> ⓘ
fn serialize<T: Hasher>(proof: &MerkleProof<T>) -> Vec<u8> ⓘ
Serialize data from
MerkleProof
into a binarysource§fn deserialize<T: Hasher>(bytes: &[u8]) -> Result<MerkleProof<T>, Error>
fn deserialize<T: Hasher>(bytes: &[u8]) -> Result<MerkleProof<T>, Error>
Deserialize data produced by
MerkleProofSerializer::serialize
back into MerkleProof
Auto Trait Implementations§
impl Freeze for DirectHashesOrder
impl RefUnwindSafe for DirectHashesOrder
impl Send for DirectHashesOrder
impl Sync for DirectHashesOrder
impl Unpin for DirectHashesOrder
impl UnwindSafe for DirectHashesOrder
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