[−][src]Enum dynasmrt::relocations::RelocationSize
A descriptor for the size of a relocation. This also doubles as a relocation itself
for relocations in data directives. Can be converted to relocations of any kind of architecture
using Relocation::from_size
.
Variants
A byte-sized relocation
A two-byte relocation
A four-byte sized relocation
An 8-byte sized relocation
Trait Implementations
impl Clone for RelocationSize
[src]
pub fn clone(&self) -> RelocationSize
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RelocationSize
[src]
impl Debug for RelocationSize
[src]
impl Eq for RelocationSize
[src]
impl Hash for RelocationSize
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<RelocationSize> for RelocationSize
[src]
pub fn eq(&self, other: &RelocationSize) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Relocation for RelocationSize
[src]
type Encoding = u8
The encoded representation for this relocation that is emitted by the dynasm! macro.
pub fn from_encoding(encoding: Self::Encoding) -> Self
[src]
pub fn from_size(size: RelocationSize) -> Self
[src]
pub fn size(&self) -> usize
[src]
pub fn write_value(
&self,
buf: &mut [u8],
value: isize
) -> Result<(), ImpossibleRelocation>
[src]
&self,
buf: &mut [u8],
value: isize
) -> Result<(), ImpossibleRelocation>
pub fn read_value(&self, buf: &[u8]) -> isize
[src]
pub fn kind(&self) -> RelocationKind
[src]
pub fn page_size() -> usize
[src]
impl StructuralEq for RelocationSize
[src]
impl StructuralPartialEq for RelocationSize
[src]
Auto Trait Implementations
impl RefUnwindSafe for RelocationSize
[src]
impl Send for RelocationSize
[src]
impl Sync for RelocationSize
[src]
impl Unpin for RelocationSize
[src]
impl UnwindSafe for RelocationSize
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,