pub fn age_stanza<'a>(input: &'a [u8]) -> IResult<&'a [u8], AgeStanza<'a>> {
        map(
            pair(
                separated_nonempty_list(tag(" "), arbitrary_string),
                opt(preceded(newline, wrapped_encoded_data)),
            ),
            |(mut args, body)| {
                let tag = args.remove(0);
                AgeStanza {
                    tag,
                    args,
                    body: body.unwrap_or_default(),
                }
            },
        )(input)
    }
/// Reads an age stanza.
///
/// From the age spec:
/// ```text
/// Each recipient stanza starts with a line beginning with -> and its type name,
/// followed by zero or more SP-separated arguments. The type name and the arguments
/// are arbitrary strings. Unknown recipient types are ignored. The rest of the
/// recipient stanza is a body of canonical base64 from RFC 4648 without padding
/// wrapped at exactly 64 columns.
/// ```
Reads an age stanza.
From the age spec:
```text
Each recipient stanza starts with a line beginning with -> and its type name,
followed by zero or more SP-separated arguments. The type name and the arguments
are arbitrary strings. Unknown recipient types are ignored. The rest of the
recipient stanza is a body of canonical base64 from RFC 4648 without padding
wrapped at exactly 64 columns.
Reads an age stanza . From the age spec : ` ` ` text Each recipient stanza starts with a line beginning with - > and its type name followed by zero or more SP - separated arguments . The type name and the arguments are arbitrary strings . Unknown recipient types are ignored . The rest of the recipient stanza is a body of canonical base64 from RFC 4648 without padding wrapped at exactly 64 columns .
pub fn age_stanza<'a>(input: &'a [u8]) -> IResult<&'a [u8], AgeStanza<'a>> {
        map(
            pair(
                separated_nonempty_list(tag(" "), arbitrary_string),
                opt(preceded(newline, wrapped_encoded_data)),
            ),
            |(mut args, body)| {
                let tag = args.remove(0);
                AgeStanza {
                    tag,
                    args,
                    body: body.unwrap_or_default(),
                }
            },
        )(input)
    }
pub fn age_stanza < ' a > ( input : & ' a [ u8 ] ) -> IResult < & ' a [ u8 ] , AgeStanza < ' a > > { map ( pair ( separated_nonempty_list ( tag ( " " ) , arbitrary_string ) , opt ( preceded ( newline , wrapped_encoded_data ) ) , ) , | ( mut args , body ) | { let tag = args . remove ( 0 ) ; AgeStanza { tag , args , body : body . unwrap_or_default ( ) , } } , ) ( input ) }
Reads an age stanza.
Reads an age stanza .
input
&'a [u8]
input
&'a [u8]