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>
impl<A: Copy + ArchitectureRelocationEncoding> Copy for RelocationType<A>
Auto Trait Implementations§
impl<A> Freeze for RelocationType<A>where
RelocationEncoding<A>: Freeze,
impl<A> RefUnwindSafe for RelocationType<A>where
RelocationEncoding<A>: RefUnwindSafe,
impl<A> Send for RelocationType<A>where
RelocationEncoding<A>: Send,
impl<A> Sync for RelocationType<A>where
RelocationEncoding<A>: Sync,
impl<A> Unpin for RelocationType<A>where
RelocationEncoding<A>: Unpin,
impl<A> UnsafeUnpin for RelocationType<A>where
RelocationEncoding<A>: UnsafeUnpin,
impl<A> UnwindSafe for RelocationType<A>where
RelocationEncoding<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