pub enum RelocationSize {
ByteSize(usize),
BitMasking(BitMask),
}Variants§
Implementations§
Source§impl RelocationSize
impl RelocationSize
pub const fn bit_mask_aarch64( bit_start: u32, bit_end: u32, instruction: AArch64Instruction, ) -> RelocationSize
pub const fn bit_mask_riscv( bit_start: u32, bit_end: u32, instruction: RiscVInstruction, ) -> RelocationSize
pub const fn bit_mask_loongarch64( bit_start: u32, bit_end: u32, instruction: LoongArch64Instruction, ) -> RelocationSize
Trait Implementations§
Source§impl Clone for RelocationSize
impl Clone for RelocationSize
Source§fn clone(&self) -> RelocationSize
fn clone(&self) -> RelocationSize
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 moreSource§impl Debug for RelocationSize
impl Debug for RelocationSize
Source§impl Display for RelocationSize
impl Display for RelocationSize
Source§impl PartialEq for RelocationSize
impl PartialEq for RelocationSize
Source§fn eq(&self, other: &RelocationSize) -> bool
fn eq(&self, other: &RelocationSize) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RelocationSize
impl Eq for RelocationSize
impl StructuralPartialEq for RelocationSize
Auto Trait Implementations§
impl Freeze for RelocationSize
impl RefUnwindSafe for RelocationSize
impl Send for RelocationSize
impl Sync for RelocationSize
impl Unpin for RelocationSize
impl UnsafeUnpin for RelocationSize
impl UnwindSafe for RelocationSize
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