pub trait Content<H>where
Self: Sized,
H: ContentHasher,{
// Required methods
fn to_content(&self, sink: &mut Sink<'_, H>) -> Result<()>;
fn from_content(source: &mut Source<'_, H>) -> Result<Self>;
}
Required Methods§
fn to_content(&self, sink: &mut Sink<'_, H>) -> Result<()>
fn from_content(source: &mut Source<'_, H>) -> Result<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<H> Content<H> for i16where
H: ContentHasher,
impl<H> Content<H> for i16where
H: ContentHasher,
Source§impl<H> Content<H> for i32where
H: ContentHasher,
impl<H> Content<H> for i32where
H: ContentHasher,
Source§impl<H> Content<H> for i64where
H: ContentHasher,
impl<H> Content<H> for i64where
H: ContentHasher,
Source§impl<H> Content<H> for u8where
H: ContentHasher,
impl<H> Content<H> for u8where
H: ContentHasher,
Source§impl<H> Content<H> for u16where
H: ContentHasher,
impl<H> Content<H> for u16where
H: ContentHasher,
Source§impl<H> Content<H> for u32where
H: ContentHasher,
impl<H> Content<H> for u32where
H: ContentHasher,
Source§impl<H> Content<H> for u64where
H: ContentHasher,
impl<H> Content<H> for u64where
H: ContentHasher,
Source§impl<H> Content<H> for ()where
H: ContentHasher,
impl<H> Content<H> for ()where
H: ContentHasher,
Source§impl<T, H> Content<H> for Option<T>where
T: Content<H>,
H: ContentHasher,
Content implementations for common std things
impl<T, H> Content<H> for Option<T>where
T: Content<H>,
H: ContentHasher,
Content implementations for common std things