pub struct Unit {
pub name: String,
pub dir: String,
pub producer: String,
pub files: Vec<String>,
pub funcs: Vec<Function>,
pub pointer: u8,
}Expand description
One compilation unit’s worth of line information.
Fields§
§name: StringThe file being compiled, as the command line spelled it, already prefix mapped.
dir: StringThe directory the compiler was run in, already prefix mapped.
This is DW_AT_comp_dir, and what it is for is that every relative name in the tables below
is relative to it. A build that cannot say where it ran writes a single dot, which is what
the tables are already relative to and is therefore the one answer that changes nothing.
producer: StringWhat produced this, which is this compiler and its version.
files: Vec<String>Every file any row names, in the order the rows refer to them by.
funcs: Vec<Function>The functions, in the order the text section holds them.
pointer: u8How many bytes an address is on this target.
Trait Implementations§
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnsafeUnpin for Unit
impl UnwindSafe for Unit
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.