Trait handshakes::prelude::MarkedDigestOutput[][src]

pub trait MarkedDigestOutput: Default + Copy + AsRef<[u8]> + AsMut<[u8]> + ByteFormat<Error = SerError> {
    fn size(&self) -> usize;

    fn reversed(&self) -> Self { ... }
fn from_be_hex(be: &str) -> Result<Self, SerError> { ... }
fn to_be_hex(&self) -> String { ... }
fn as_mut_slice(&mut self) -> &mut [u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
{ ... }
fn as_slice(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
{ ... } }
Expand description

Convenience interface for hash function outputs, particularly marked digest outputs

Required methods

Returns the number of bytes in the digest

Provided methods

Return a clone in opposite byte order

Deserialize to BE hex

Convert to BE hex

Use as a mutable slice

Use as a slice

Implementors