Struct grin_core::core::hash::HashWriter
source · pub struct HashWriter { /* private fields */ }
Expand description
Serializer that outputs a hash of the serialized object
Implementations§
Trait Implementations§
source§impl Default for HashWriter
impl Default for HashWriter
source§fn default() -> HashWriter
fn default() -> HashWriter
Returns the “default value” for a type. Read more
source§impl Writer for HashWriter
impl Writer for HashWriter
source§fn serialization_mode(&self) -> SerializationMode
fn serialization_mode(&self) -> SerializationMode
The mode this serializer is writing in
source§fn write_fixed_bytes<T: AsRef<[u8]>>(&mut self, bytes: T) -> Result<(), Error>
fn write_fixed_bytes<T: AsRef<[u8]>>(&mut self, bytes: T) -> Result<(), Error>
Writes a fixed number of bytes. The reader is expected to know the actual length on read.
source§fn protocol_version(&self) -> ProtocolVersion
fn protocol_version(&self) -> ProtocolVersion
Protocol version for version specific serialization rules.
Auto Trait Implementations§
impl Freeze for HashWriter
impl RefUnwindSafe for HashWriter
impl Send for HashWriter
impl Sync for HashWriter
impl Unpin for HashWriter
impl UnwindSafe for HashWriter
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