[][src]Trait veriform::decoder::DecodeRef

pub trait DecodeRef<T: ?Sized> {
    fn decode_ref<'a>(
        &mut self,
        tag: Tag,
        input: &mut &'a [u8]
    ) -> Result<&'a T, Error>; }

Try to decode a field to a reference of the given type.

This trait is intended to be impl'd by the Decoder type.

Required methods

fn decode_ref<'a>(
    &mut self,
    tag: Tag,
    input: &mut &'a [u8]
) -> Result<&'a T, Error>

Try to decode a reference to type T

Loading content...

Implementors

impl<D> DecodeRef<[u8]> for Decoder<D> where
    D: Digest
[src]

impl<D> DecodeRef<str> for Decoder<D> where
    D: Digest
[src]

Loading content...