pub struct Segment<'input> {
pub address: u64,
pub bytes: &'input [u8],
}
Expand description
A loadable range of bytes.
Fields§
§address: u64
The address that the bytes should be loaded at.
bytes: &'input [u8]
The bytes, which may be code or data.
Trait Implementations§
Auto Trait Implementations§
impl<'input> Freeze for Segment<'input>
impl<'input> RefUnwindSafe for Segment<'input>
impl<'input> Send for Segment<'input>
impl<'input> Sync for Segment<'input>
impl<'input> Unpin for Segment<'input>
impl<'input> UnwindSafe for Segment<'input>
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