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
- the file extension
si0
and magic bytes 0x01, 0xff as\x01\xff
raw_size: u32
- the total size of the input
raw_hash: MD5Sum
- the MD5 hash of the input
segment_size: u32
- the segment size
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HeaderLine
impl Send for HeaderLine
impl Sync for HeaderLine
impl Unpin for HeaderLine
impl UnwindSafe for HeaderLine
Blanket Implementations
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
impl<T> Indentable for T where
T: Display,
impl<T> Indentable for T where
T: Display,
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
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