pub enum MacroString<R, Offset = <R as Reader>::Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,{
Direct(R),
StringPointer(DebugStrOffset<Offset>),
IndirectStringPointer(DebugStrOffsetsIndex<Offset>),
Supplementary(DebugStrOffset<Offset>),
}
Expand description
A string in a macro entry.
Variants§
Direct(R)
The string is directly embedded in the macro entry
StringPointer(DebugStrOffset<Offset>)
The macro refers to a string in the .debug_str
section using a DebugStrOffset
.
IndirectStringPointer(DebugStrOffsetsIndex<Offset>)
The macro contains an index into an array in the .debug_str_offsets
section, which refers to a string in the .debug_str
section.
Supplementary(DebugStrOffset<Offset>)
The macro refers to a string in the .debug_str
section in the supplementary object file
Implementations§
Trait Implementations§
Source§impl<R, Offset> Clone for MacroString<R, Offset>
impl<R, Offset> Clone for MacroString<R, Offset>
Source§fn clone(&self) -> MacroString<R, Offset>
fn clone(&self) -> MacroString<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 MacroString<R, Offset>
impl<R, Offset> Debug for MacroString<R, Offset>
Source§impl<R, Offset> PartialEq for MacroString<R, Offset>
impl<R, Offset> PartialEq for MacroString<R, Offset>
impl<R, Offset> Eq for MacroString<R, Offset>
impl<R, Offset> StructuralPartialEq for MacroString<R, Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Auto Trait Implementations§
impl<R, Offset> Freeze for MacroString<R, Offset>
impl<R, Offset> RefUnwindSafe for MacroString<R, Offset>where
R: RefUnwindSafe,
Offset: RefUnwindSafe,
impl<R, Offset> Send for MacroString<R, Offset>
impl<R, Offset> Sync for MacroString<R, Offset>
impl<R, Offset> Unpin for MacroString<R, Offset>
impl<R, Offset> UnwindSafe for MacroString<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