[−][src]Struct grin_core::core::hash::HashWriter
Serializer that outputs a hash of the serialized object
Implementations
impl HashWriter
[src]
pub fn finalize(self, output: &mut [u8])
[src]
Consume the HashWriter
, outputting its current hash into a 32-byte
array
pub fn into_hash(self) -> Hash
[src]
Consume the HashWriter
, outputting a Hash
corresponding to its
current state
Trait Implementations
impl Default for HashWriter
[src]
fn default() -> HashWriter
[src]
impl Writer for HashWriter
[src]
fn serialization_mode(&self) -> SerializationMode
[src]
fn write_fixed_bytes<T: AsRef<[u8]>>(&mut self, bytes: T) -> Result<(), Error>
[src]
fn protocol_version(&self) -> ProtocolVersion
[src]
fn write_u8(&mut self, n: u8) -> Result<(), Error>
[src]
fn write_u16(&mut self, n: u16) -> Result<(), Error>
[src]
fn write_u32(&mut self, n: u32) -> Result<(), Error>
[src]
fn write_i32(&mut self, n: i32) -> Result<(), Error>
[src]
fn write_u64(&mut self, n: u64) -> Result<(), Error>
[src]
fn write_i64(&mut self, n: i64) -> Result<(), Error>
[src]
fn write_bytes<T: AsRef<[u8]>>(&mut self, bytes: T) -> Result<(), Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for HashWriter
impl Send for HashWriter
impl Sync for HashWriter
impl Unpin for HashWriter
impl UnwindSafe for HashWriter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,