[][src]Trait canonical::IdBuilder

pub trait IdBuilder<I>: Default {
    fn write_bytes(&mut self, bytes: &[u8]);
fn fin(self) -> I; }

Trait for types that takes bytes and produces an identifier

Required methods

fn write_bytes(&mut self, bytes: &[u8])

Write bytes to the id state

fn fin(self) -> I

Consume builder and create an Ident

Loading content...

Implementors

Loading content...