pub enum RelocatableHeaderTagPreference {
None,
Low,
High,
Custom(u32),
}Expand description
The bootloader’s preferred placement for a relocatable image.
This is a higher level abstraction for
RelocatableHeaderTagPreferenceRaw.
Variants§
None
Let the bootloader choose the image location.
Low
Load the image at the lowest possible address that is not below
min_addr.
High
Load the image at the highest possible address that does not end above
max_addr.
Custom(u32)
Value without a specified semantic in the specification.
Implementations§
Trait Implementations§
Source§impl Clone for RelocatableHeaderTagPreference
impl Clone for RelocatableHeaderTagPreference
Source§fn clone(&self) -> RelocatableHeaderTagPreference
fn clone(&self) -> RelocatableHeaderTagPreference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RelocatableHeaderTagPreference
impl Eq for RelocatableHeaderTagPreference
Source§impl From<RelocatableHeaderTagPreference> for u32
impl From<RelocatableHeaderTagPreference> for u32
Source§fn from(val: RelocatableHeaderTagPreference) -> Self
fn from(val: RelocatableHeaderTagPreference) -> Self
Converts to this type from the input type.
Source§impl From<RelocatableHeaderTagPreference> for RelocatableHeaderTagPreferenceRaw
impl From<RelocatableHeaderTagPreference> for RelocatableHeaderTagPreferenceRaw
Source§fn from(val: RelocatableHeaderTagPreference) -> Self
fn from(val: RelocatableHeaderTagPreference) -> Self
Converts to this type from the input type.
Source§impl From<RelocatableHeaderTagPreferenceRaw> for RelocatableHeaderTagPreference
impl From<RelocatableHeaderTagPreferenceRaw> for RelocatableHeaderTagPreference
Source§fn from(raw: RelocatableHeaderTagPreferenceRaw) -> Self
fn from(raw: RelocatableHeaderTagPreferenceRaw) -> Self
Converts to this type from the input type.
Source§impl From<u32> for RelocatableHeaderTagPreference
impl From<u32> for RelocatableHeaderTagPreference
Source§impl Ord for RelocatableHeaderTagPreference
impl Ord for RelocatableHeaderTagPreference
Source§fn cmp(&self, other: &RelocatableHeaderTagPreference) -> Ordering
fn cmp(&self, other: &RelocatableHeaderTagPreference) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for RelocatableHeaderTagPreference
impl PartialOrd for RelocatableHeaderTagPreference
impl StructuralPartialEq for RelocatableHeaderTagPreference
Auto Trait Implementations§
impl Freeze for RelocatableHeaderTagPreference
impl RefUnwindSafe for RelocatableHeaderTagPreference
impl Send for RelocatableHeaderTagPreference
impl Sync for RelocatableHeaderTagPreference
impl Unpin for RelocatableHeaderTagPreference
impl UnsafeUnpin for RelocatableHeaderTagPreference
impl UnwindSafe for RelocatableHeaderTagPreference
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