[−][src]Struct pdb::Symbol
Represents a symbol from the symbol table.
A Symbol
is represented internally as a &[u8]
, and in general the bytes inside are not
inspected in any way before calling any of the accessor methods.
To avoid copying, Symbol
s exist as references to data owned by the parent SymbolTable
.
Therefore, a Symbol
may not outlive its parent SymbolTable
.
Methods
impl<'t> Symbol<'t>
[src]
pub fn raw_kind(&self) -> u16
[src]
Returns the kind of symbol identified by this Symbol.
pub fn raw_bytes(&self) -> &'t [u8]
[src]
Returns the raw bytes of this symbol record, including the symbol type but not including the preceding symbol length indicator.
pub fn parse(&self) -> Result<SymbolData>
[src]
Parse the symbol into the SymbolData
it contains.
pub fn name(&self) -> Result<RawString<'t>>
[src]
Returns the name of the symbol. Note that the underlying buffer is owned by the
SymbolTable
.
Trait Implementations
impl<'t> Clone for Symbol<'t>
[src]
fn clone(&self) -> Symbol<'t>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'t> PartialEq<Symbol<'t>> for Symbol<'t>
[src]
impl<'t> Copy for Symbol<'t>
[src]
impl<'t> Debug for Symbol<'t>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,