pub struct Autoload<'a> { /* private fields */ }Expand description
An autoload block.
Implementations§
Source§impl<'a> Autoload<'a>
impl<'a> Autoload<'a>
Sourcepub fn new<T: Into<Cow<'a, [u8]>>>(data: T, info: AutoloadInfo) -> Self
pub fn new<T: Into<Cow<'a, [u8]>>>(data: T, info: AutoloadInfo) -> Self
Creates a new autoload block from raw data.
Sourcepub fn base_address(&self) -> u32
pub fn base_address(&self) -> u32
Returns the base address of this Autoload.
Sourcepub fn end_address(&self) -> u32
pub fn end_address(&self) -> u32
Returns the end address of this Autoload.
Sourcepub fn kind(&self) -> AutoloadKind
pub fn kind(&self) -> AutoloadKind
Returns the kind of this Autoload.
Sourcepub fn info(&self) -> &AutoloadInfo
pub fn info(&self) -> &AutoloadInfo
Returns a reference to the info of this Autoload.
Auto Trait Implementations§
impl<'a> Freeze for Autoload<'a>
impl<'a> RefUnwindSafe for Autoload<'a>
impl<'a> Send for Autoload<'a>
impl<'a> Sync for Autoload<'a>
impl<'a> Unpin for Autoload<'a>
impl<'a> UnwindSafe for Autoload<'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