Function git_actor::signature::decode

source ·
pub fn decode<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>(
    i: &'a [u8]
) -> IResult<&'a [u8], SignatureRef<'a>, E>
Expand description

Parse a signature from the bytes input i using nom.

Examples found in repository?
src/signature/mod.rs (line 12)
8
9
10
11
12
13
        pub fn from_bytes<E>(data: &'a [u8]) -> Result<SignatureRef<'a>, nom::Err<E>>
        where
            E: nom::error::ParseError<&'a [u8]> + nom::error::ContextError<&'a [u8]>,
        {
            decode(data).map(|(_, t)| t)
        }