pub fn parse<T: AsRef<[u8]> + ?Sized>(image: &'a T) -> Result<Self, Error> {
        let image = image.as_ref();
        let props = AppProperties::extract(image)?;
        Ok(Self {
            raw: Blob(image.into()),
            app_props_pos: props.position,
            app_props: props,
        })
    }
/// Parses a raw application image by extracting the application properties.
///
/// # Errors
///
/// Returns an error if `image` does not contain a valid application
/// properties structure.
Parses a raw application image by extracting the application properties.
Parses a raw application image by extracting the application properties .
pub fn parse<T: AsRef<[u8]> + ?Sized>(image: &'a T) -> Result<Self, Error> {
        let image = image.as_ref();
        let props = AppProperties::extract(image)?;
        Ok(Self {
            raw: Blob(image.into()),
            app_props_pos: props.position,
            app_props: props,
        })
    }
pub fn parse < T : AsRef < [ u8 ] > + ? Sized > ( image : & ' a T ) -> Result < Self , Error > { let image = image . as_ref ( ) ; let props = AppProperties :: extract ( image ) ? ; Ok ( Self { raw : Blob ( image . into ( ) ) , app_props_pos : props . position , app_props : props , } ) }
Parses a raw application image by extracting the application properties.
Parses a raw application image by extracting the application properties .
image
&'a T
errors
Returns an error if `image` does not contain a valid application
properties structure.
Returns an error if ` image ` does not contain a valid application properties structure .