Struct rs_merkle::proof_serializers::DirectHashesOrder
source · [−]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
sourceimpl MerkleProofSerializer for DirectHashesOrder
impl MerkleProofSerializer for DirectHashesOrder
sourcefn serialize<T: Hasher>(proof: &MerkleProof<T>) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn serialize<T: Hasher>(proof: &MerkleProof<T>) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Serialize data from MerkleProof
into a binary
sourcefn 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 RefUnwindSafe for DirectHashesOrder
impl Send for DirectHashesOrder
impl Sync for DirectHashesOrder
impl Unpin for DirectHashesOrder
impl UnwindSafe for DirectHashesOrder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more