pub struct Page {
pub offset: u64,
pub body: Vec<Line>,
pub bytes: u64,
}Expand description
Page structure for hex output
A Page represents a collection of Line structures, forming a complete
page of hexadecimal output. This structure is used to organize and process
multiple lines of hex data together.
§Examples
use hx::{Line, Page};
let mut page = Page::new();
let mut line1 = Line::new();
line1.hex_body.push(0x01);
line1.bytes = 1;
let mut line2 = Line::new();
line2.hex_body.push(0x02);
line2.bytes = 1;
page.body.push(line1);
page.body.push(line2);
page.bytes = 2;Fields§
§offset: u64Starting memory offset for this page
body: Vec<Line>Collection of Line structures forming the page content
bytes: u64Total number of bytes represented across all lines in this page
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnwindSafe for Page
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