pub struct TreeHasher;Trait Implementations§
Source§impl Clone for TreeHasher
 
impl Clone for TreeHasher
Source§fn clone(&self) -> TreeHasher
 
fn clone(&self) -> TreeHasher
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 TreeHasher
 
impl Debug for TreeHasher
Source§impl KlvmEncoder for TreeHasher
 
impl KlvmEncoder for TreeHasher
type Node = TreeHash
fn encode_atom(&mut self, bytes: Atom<'_>) -> Result<Self::Node, ToKlvmError>
fn encode_pair( &mut self, first: Self::Node, rest: Self::Node, ) -> Result<Self::Node, ToKlvmError>
fn encode_bigint(&mut self, number: BigInt) -> Result<Self::Node, ToKlvmError>
fn encode_curried_arg( &mut self, first: Self::Node, rest: Self::Node, ) -> Result<Self::Node, ToKlvmError>
Source§fn clone_node(&self, node: &Self::Node) -> Self::Node
 
fn clone_node(&self, node: &Self::Node) -> Self::Node
This is a helper function that just calls 
clone on the node.
It’s required only because the compiler can’t infer that N is Clone,
since there’s no Clone bound on the ToKlvm trait.Source§impl ToKlvm<TreeHasher> for TreeHash
 
impl ToKlvm<TreeHasher> for TreeHash
fn to_klvm(&self, _encoder: &mut TreeHasher) -> Result<TreeHash, ToKlvmError>
impl Copy for TreeHasher
Auto Trait Implementations§
impl Freeze for TreeHasher
impl RefUnwindSafe for TreeHasher
impl Send for TreeHasher
impl Sync for TreeHasher
impl Unpin for TreeHasher
impl UnwindSafe for TreeHasher
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