pub trait Content<H> where
Self: Sized,
H: ContentHasher, {
fn to_content(&self, sink: &mut Sink<H>) -> Result<()>;
fn from_content(source: &mut Source<H>) -> Result<Self>;
}
Required Methods
Implementors
impl<T, H> Content<H> for Option<T> where
T: Content<H>,
H: ContentHasher,
impl<T, H> Content<H> for Box<T> where
T: Content<H>,
H: ContentHasher,
impl<H> Content<H> for u8 where
H: ContentHasher,
impl<H> Content<H> for () where
H: ContentHasher,
impl<H> Content<H> for u64 where
H: ContentHasher,
impl<H> Content<H> for u32 where
H: ContentHasher,
impl<H> Content<H> for u16 where
H: ContentHasher,
impl<H> Content<H> for i64 where
H: ContentHasher,
impl<H> Content<H> for i32 where
H: ContentHasher,
impl<H> Content<H> for i16 where
H: ContentHasher,