pub struct Section<'a> {
pub tag: [u8; 4],
pub version: u8,
pub body: &'a [u8],
}Expand description
Decoded view of one section’s metadata + body slice.
Fields§
§tag: [u8; 4]Tag bytes (e.g. b"CPU ").
version: u8Per-section schema version.
body: &'a [u8]Body slice (does NOT include the header itself).
Trait Implementations§
impl<'a> Copy for Section<'a>
Auto Trait Implementations§
impl<'a> Freeze for Section<'a>
impl<'a> RefUnwindSafe for Section<'a>
impl<'a> Send for Section<'a>
impl<'a> Sync for Section<'a>
impl<'a> Unpin for Section<'a>
impl<'a> UnsafeUnpin for Section<'a>
impl<'a> UnwindSafe for Section<'a>
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