pub struct Chunk {
pub name: String,
pub bytes: Vec<u8>,
pub relocs: Vec<Reloc>,
}Expand description
One debug section, with the name it goes in the file under.
A relocation here names either a function this file defines or another section in the same
list, and the two are told apart by looking the name up among the sections first. That is safe
rather than lucky: every section name in DWARF begins with .debug_, which is not the spelling
of any name a C program can define.
Fields§
§name: StringWhat the section is called, which is the name DWARF gives it.
bytes: Vec<u8>Its contents.
relocs: Vec<Reloc>Every place in them that names something this file does not place itself.
Trait Implementations§
impl Eq for Chunk
impl StructuralPartialEq for Chunk
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
impl UnwindSafe for Chunk
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.