pub enum Dynamic<'data> {
Auto {
tag: u32,
},
Integer {
tag: u32,
val: u64,
},
String {
tag: u32,
val: ByteString<'data>,
},
}
Expand description
An entry in the dynamic section.
This corresponds to elf::Dyn32
or elf::Dyn64
.
Variants§
Auto
The value is an automatically generated integer.
Writing will fail if the value cannot be automatically generated.
Integer
The value is an integer.
Fields
String
The value is a string.
Fields
§
val: ByteString<'data>
The string value.
This will be stored in the dynamic string section.
Implementations§
Trait Implementations§
source§impl<'data> PartialEq for Dynamic<'data>
impl<'data> PartialEq for Dynamic<'data>
impl<'data> Eq for Dynamic<'data>
impl<'data> StructuralPartialEq for Dynamic<'data>
Auto Trait Implementations§
impl<'data> Freeze for Dynamic<'data>
impl<'data> RefUnwindSafe for Dynamic<'data>
impl<'data> Send for Dynamic<'data>
impl<'data> Sync for Dynamic<'data>
impl<'data> Unpin for Dynamic<'data>
impl<'data> UnwindSafe for Dynamic<'data>
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.