logo

Struct assembly_pack::sd0::index::HeaderLine[][src]

pub struct HeaderLine {
    pub magic: &'static str,
    pub raw_size: u32,
    pub raw_hash: MD5Sum,
    pub segment_size: u32,
}
Expand description

The first line is a header of the following form:

'%s%s:%08x:%s:%08x\r'

with the following data:

Fields

magic: &'static str
  1. the file extension si0 and magic bytes 0x01, 0xff as \x01\xff
raw_size: u32
  1. the total size of the input
raw_hash: MD5Sum
  1. the MD5 hash of the input
segment_size: u32
  1. the segment size

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more

Performs the conversion.

Wrap this object so that its Display representation is indented with the given indent. Each non-empty line of the formatted output will be prefixed with the indent. Read more

Wrap this object so that its Display representation is indented with the given indent. Each non-empty line except for the first of the formatted output will be prefixed with the indent. Read more

Performs the conversion.

Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.