Struct multiboot2::ImageLoadPhysAddrTag
source · #[repr(C)]pub struct ImageLoadPhysAddrTag { /* private fields */ }
Expand description
The physical load address tag. Typically, this is only available if the binary was relocated, for example if the relocatable header tag was specified.
Implementations§
source§impl ImageLoadPhysAddrTag
impl ImageLoadPhysAddrTag
pub fn new(load_base_addr: u32) -> Self
sourcepub fn load_base_addr(&self) -> u32
pub fn load_base_addr(&self) -> u32
Returns the load base address.
Trait Implementations§
source§impl Clone for ImageLoadPhysAddrTag
impl Clone for ImageLoadPhysAddrTag
source§fn clone(&self) -> ImageLoadPhysAddrTag
fn clone(&self) -> ImageLoadPhysAddrTag
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageLoadPhysAddrTag
impl Debug for ImageLoadPhysAddrTag
source§impl Hash for ImageLoadPhysAddrTag
impl Hash for ImageLoadPhysAddrTag
source§impl Ord for ImageLoadPhysAddrTag
impl Ord for ImageLoadPhysAddrTag
source§impl PartialEq for ImageLoadPhysAddrTag
impl PartialEq for ImageLoadPhysAddrTag
source§fn eq(&self, other: &ImageLoadPhysAddrTag) -> bool
fn eq(&self, other: &ImageLoadPhysAddrTag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ImageLoadPhysAddrTag
impl PartialOrd for ImageLoadPhysAddrTag
source§impl TagTrait for ImageLoadPhysAddrTag
impl TagTrait for ImageLoadPhysAddrTag
source§fn dst_size(_base_tag: &Tag)
fn dst_size(_base_tag: &Tag)
Returns the amount of items in the dynamically sized portion of the
DST. Note that this is not the amount of bytes. So if the dynamically
sized portion is 16 bytes in size and each element is 4 bytes big, then
this function must return 4. Read more
source§fn as_base_tag(&self) -> &Tag
fn as_base_tag(&self) -> &Tag
Returns the tag as the common base tag structure.
source§fn size(&self) -> usize
fn size(&self) -> usize
Returns the total size of the tag. The depends on the
size
field of
the tag.source§fn as_bytes(&self) -> &[u8]
fn as_bytes(&self) -> &[u8]
Returns a slice to the underlying bytes of the tag. This includes all
bytes, also for tags that are DSTs. The slice length depends on the
size
field of the tag.source§unsafe fn from_base_tag(tag: &Tag) -> &Self
unsafe fn from_base_tag(tag: &Tag) -> &Self
Creates a reference to a (dynamically sized) tag type in a safe way.
DST tags need to implement a proper
Self::dst_size
implementation. Read moreimpl Copy for ImageLoadPhysAddrTag
impl Eq for ImageLoadPhysAddrTag
impl StructuralPartialEq for ImageLoadPhysAddrTag
Auto Trait Implementations§
impl Freeze for ImageLoadPhysAddrTag
impl RefUnwindSafe for ImageLoadPhysAddrTag
impl Send for ImageLoadPhysAddrTag
impl Sync for ImageLoadPhysAddrTag
impl Unpin for ImageLoadPhysAddrTag
impl UnwindSafe for ImageLoadPhysAddrTag
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more