pub enum MacroEntry<R, Offset = <R as Reader>::Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,{
Define {
line: u64,
text: MacroString<R>,
},
Undef {
line: u64,
name: MacroString<R>,
},
StartFile {
line: u64,
file: u64,
},
EndFile,
Import {
offset: DebugMacroOffset<Offset>,
},
ImportSup {
offset: DebugMacroOffset<Offset>,
},
VendorExt {
numeric: u64,
string: R,
},
}
Expand description
an Entry in the .debug_macro
section.
Variants§
Define
A macro definition.
Fields
§
text: MacroString<R>
The text of the macro: The name of the macro followed immediately by any formal parameters including the surrounding parentheses, followed by the macro definition.
Undef
A macro undefinition.
Fields
§
name: MacroString<R>
The name of the macro without the definition.
StartFile
The start of a file.
Fields
EndFile
The end of the current included file.
Import
import a macro unit
Fields
§
offset: DebugMacroOffset<Offset>
offset of the macro unit in the .debug_macro
section
ImportSup
import a macro unit from the supplementary object file
Fields
§
offset: DebugMacroOffset<Offset>
offset of the macro unit in the .debug_macro
section of the supplementary object file
VendorExt
A vendor-specific extension.
Trait Implementations§
Source§impl<R, Offset> Clone for MacroEntry<R, Offset>
impl<R, Offset> Clone for MacroEntry<R, Offset>
Source§fn clone(&self) -> MacroEntry<R, Offset>
fn clone(&self) -> MacroEntry<R, Offset>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<R, Offset> Debug for MacroEntry<R, Offset>
impl<R, Offset> Debug for MacroEntry<R, Offset>
Source§impl<R, Offset> PartialEq for MacroEntry<R, Offset>
impl<R, Offset> PartialEq for MacroEntry<R, Offset>
impl<R, Offset> Eq for MacroEntry<R, Offset>
impl<R, Offset> StructuralPartialEq for MacroEntry<R, Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Auto Trait Implementations§
impl<R, Offset> Freeze for MacroEntry<R, Offset>
impl<R, Offset> RefUnwindSafe for MacroEntry<R, Offset>where
R: RefUnwindSafe,
Offset: RefUnwindSafe,
impl<R, Offset> Send for MacroEntry<R, Offset>
impl<R, Offset> Sync for MacroEntry<R, Offset>
impl<R, Offset> Unpin for MacroEntry<R, Offset>
impl<R, Offset> UnwindSafe for MacroEntry<R, Offset>where
R: UnwindSafe,
Offset: UnwindSafe,
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