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§
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.