fn parse(buffer: &mut buffer::Buffer<'a>) -> Result<Hash32<'a>, buffer::EndOfBufferError> {

        Ok(Hash32(

            // we must transmute as rustc doesn't trust the slice is exactly 32 bytes
            // (transmuting &[u8] -> &[u8;32])
            unsafe { mem::transmute(
                try!(buffer.parse_bytes(32)).as_ptr()) }
        ))
    }
/// Parses the hash from a buffer; with 0-copy
Parses the hash from a buffer; with 0-copy
Parses the hash from a buffer ; with 0 - copy
fn parse(buffer: &mut buffer::Buffer<'a>) -> Result<Hash32<'a>, buffer::EndOfBufferError> {
        Ok(Hash32(
            // we must transmute as rustc doesn't trust the slice is exactly 32 bytes
            // (transmuting &[u8] -> &[u8;32])
            unsafe { mem::transmute(
                try!(buffer.parse_bytes(32)).as_ptr()) }
        ))
    }
fn parse ( buffer : & mut buffer :: Buffer < ' a > ) -> Result < Hash32 < ' a > , buffer :: EndOfBufferError > { Ok ( Hash32 ( // we must transmute as rustc doesn't trust the slice is exactly 32 bytes // (transmuting &[u8] -> &[u8;32]) unsafe { mem :: transmute ( try ! ( buffer parse_bytes ( 32 ) ) . as_ptr ( ) ) } ) ) }
Parses the hash from a buffer; with 0-copy
Parses the hash from a buffer ; with 0 - copy
buffer
&mut buffer::Buffer<'a>
buffer
&mut buffer::Buffer<'a>