Enum dynasmrt::relocations::RelocationSize [−][src]
pub enum RelocationSize {
Byte,
Word,
DWord,
QWord,
}
Expand description
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
The encoded representation for this relocation that is emitted by the dynasm! macro.
construct this relocation from an encoded representation.
construct this relocation from a simple size. This is used to implement relocations in directives and literal pools.
Write a value into a buffer of size self.size()
in the format of this relocation.
Any bits not part of the relocation should be preserved. Read more
Read a value from a buffer of size self.size()
in the format of this relocation.
Specifies what kind of relocation this relocation instance is.
Auto Trait Implementations
impl RefUnwindSafe for RelocationSize
impl Send for RelocationSize
impl Sync for RelocationSize
impl Unpin for RelocationSize
impl UnwindSafe for RelocationSize
Blanket Implementations
Mutably borrows from an owned value. Read more