pub struct HexState {
pub sel: Option<(u32, u32)>,
pub cols: u8,
/* private fields */
}Expand description
the app-owned state of a hex view: selection, bytes per row, caret
Fields§
§sel: Option<(u32, u32)>the selected bytes: (start, length >= 1); when the app changes it, the view scrolls to it
cols: u8bytes per row; 0 = 16 when they fit, else 8
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for HexState
impl Freeze for HexState
impl RefUnwindSafe for HexState
impl Send for HexState
impl Sync for HexState
impl Unpin for HexState
impl UnsafeUnpin for HexState
impl UnwindSafe for HexState
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