pub struct RelocationType<A: ArchitectureRelocationEncoding> {
pub kind: RelocationKind,
pub encoding: RelocationEncoding<A>,
}Expand description
RelocationType contains all information needed to describe how a relocation should be
performed by the runtime
Fields§
§kind: RelocationKindHow this relocation should be adapted if the buffer gets moved
encoding: RelocationEncoding<A>The way this relocation is to be encoded
Implementations§
Source§impl<A: ArchitectureRelocationEncoding> RelocationType<A>
impl<A: ArchitectureRelocationEncoding> RelocationType<A>
Sourcepub fn from_size(kind: RelocationKind, size: RelocationSize) -> Self
pub fn from_size(kind: RelocationKind, size: RelocationSize) -> Self
manually create a RelocationType for a simple size-based relocation
Trait Implementations§
Source§impl<A: Clone + ArchitectureRelocationEncoding> Clone for RelocationType<A>
impl<A: Clone + ArchitectureRelocationEncoding> Clone for RelocationType<A>
Source§fn clone(&self) -> RelocationType<A>
fn clone(&self) -> RelocationType<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A: Debug + ArchitectureRelocationEncoding> Debug for RelocationType<A>
impl<A: Debug + ArchitectureRelocationEncoding> Debug for RelocationType<A>
impl<A: Copy + ArchitectureRelocationEncoding> Copy for RelocationType<A>
Auto Trait Implementations§
impl<A> Freeze for RelocationType<A>where
A: Freeze,
impl<A> RefUnwindSafe for RelocationType<A>where
A: RefUnwindSafe,
impl<A> Send for RelocationType<A>where
A: Send,
impl<A> Sync for RelocationType<A>where
A: Sync,
impl<A> Unpin for RelocationType<A>where
A: Unpin,
impl<A> UnwindSafe for RelocationType<A>where
A: UnwindSafe,
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