fn from_base64(encoded: &str) -> Result<(Self, u64), Error> {
        read_base64_contents(encoded).and_then(|(bytes, bytes_read)| {
            let bytes = Self::from_bytes(&bytes)?;
            Ok((bytes, bytes_read))
        })
    }
/// Parses a base64 encoded string into a structure.
///
/// Returns the structure and number of bytes read.
/// This can be helpful when dealing with embedded signatures.
///
/// The parsing enforces that the `signify` file format is adhered to.
///
/// Said format is roughly defined as such:
/// ```text
/// untrusted comment: <about what the file contains><\n>
/// <contents><\n>
/// ```
Parses a base64 encoded string into a structure.
Returns the structure and number of bytes read.
This can be helpful when dealing with embedded signatures.

The parsing enforces that the `signify` file format is adhered to.


Parses a base64 encoded string into a structure . Returns the structure and number of bytes read . This can be helpful when dealing with embedded signatures . The parsing enforces that the ` signify ` file format is adhered to .
fn from_base64(encoded: &str) -> Result<(Self, u64), Error> {
        read_base64_contents(encoded).and_then(|(bytes, bytes_read)| {
            let bytes = Self::from_bytes(&bytes)?;
            Ok((bytes, bytes_read))
        })
    }
fn from_base64 ( encoded : & str ) -> Result < ( Self , u64 ) , Error > { read_base64_contents ( encoded ) . and_then ( | ( bytes , bytes_read ) | { let bytes = Self :: from_bytes ( & bytes ) ? ; Ok ( ( bytes , bytes_read ) ) } ) }
Parses a base64 encoded string into a structure.
Parses a base64 encoded string into a structure .
encoded
&str
encoded
&str