Struct assembly_pack::sd0::index::HeaderLine
source · pub struct HeaderLine {
pub magic: &'static str,
pub raw_size: u32,
pub raw_hash: MD5Sum,
pub segment_size: u32,
}
Available on crate feature
sd0
only.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 Freeze for HeaderLine
impl RefUnwindSafe for HeaderLine
impl Send for HeaderLine
impl Sync for HeaderLine
impl Unpin for HeaderLine
impl UnwindSafe for HeaderLine
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
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 Twhere
T: Display,
impl<T> Indentable for Twhere
T: Display,
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
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