pub struct Pub<'a> {
pub fixed: &'a PubFixed,
pub name: &'a BStr,
}
Expand description
PUBSYM32
typedef struct PUBSYM32 {
unsigned short reclen; // Record length
unsigned short rectyp; // S_PUB32
CV_PUBSYMFLAGS pubsymflags;
CV_uoff32_t off;
unsigned short seg;
unsigned char name[1]; // Length-prefixed name
} PUBSYM32;
Fields§
§fixed: &'a PubFixed
§name: &'a BStr
Implementations§
Source§impl<'a> Pub<'a>
impl<'a> Pub<'a>
Sourcepub fn offset_segment(&self) -> OffsetSegment
pub fn offset_segment(&self) -> OffsetSegment
Gets the segment:offset
of this symbol.
Trait Implementations§
Source§impl<'a> Parse<'a> for Pub<'a>
impl<'a> Parse<'a> for Pub<'a>
Source§fn from_parser(p: &mut Parser<'a>) -> Result<Self, ParserError>
fn from_parser(p: &mut Parser<'a>) -> Result<Self, ParserError>
Parses an instance of
Self
from a Parser
.
This allows the caller to detect which bytes were not consumed at the end of the input.Auto Trait Implementations§
impl<'a> Freeze for Pub<'a>
impl<'a> RefUnwindSafe for Pub<'a>
impl<'a> Send for Pub<'a>
impl<'a> Sync for Pub<'a>
impl<'a> Unpin for Pub<'a>
impl<'a> UnwindSafe for Pub<'a>
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