pub fn to_bytes(&self) -> Vec<u8> {
    let mut bytes = ByteCursor::new(Vec::with_capacity(self.size().into()));
    self.write(&mut bytes).expect("writing to a vec should never fail");

    bytes.into_inner()
  }
/// Returns the bytes of a multihash.
Returns the bytes of a multihash.
Returns the bytes of a multihash .
pub fn to_bytes(&self) -> Vec<u8> {
    let mut bytes = ByteCursor::new(Vec::with_capacity(self.size().into()));
    self.write(&mut bytes).expect("writing to a vec should never fail");
    bytes.into_inner()
  }
pub fn to_bytes ( & self ) -> Vec < u8 > { let mut bytes = ByteCursor :: new ( Vec :: with_capacity ( self . size ( ) . into ( ) ) ) ; self . write ( & mut bytes ) . expect ( " " ) ; bytes . into_inner ( ) }
Returns the bytes of a multihash.
Returns the bytes of a multihash .
&self
&self