[−][src]Struct pdb::Symbol
pub struct Symbol<'t>(_);
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]
impl<'t> Symbol<'t>
pub fn raw_kind(&self) -> u16
[src]
pub fn raw_kind(&self) -> u16
Returns the kind of symbol identified by this Symbol.
pub fn raw_bytes(&self) -> &'t [u8]
[src]
pub fn raw_bytes(&self) -> &'t [u8]
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]
pub fn parse(&self) -> Result<SymbolData>
Parse the symbol into the SymbolData
it contains.
pub fn name(&self) -> Result<RawString<'t>>
[src]
pub fn name(&self) -> Result<RawString<'t>>
Returns the name of the symbol. Note that the underlying buffer is owned by the
SymbolTable
.
Trait Implementations
impl<'t> Copy for Symbol<'t>
[src]
impl<'t> Copy for Symbol<'t>
impl<'t> Clone for Symbol<'t>
[src]
impl<'t> Clone for Symbol<'t>
fn clone(&self) -> Symbol<'t>
[src]
fn clone(&self) -> Symbol<'t>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'t> PartialEq for Symbol<'t>
[src]
impl<'t> PartialEq for Symbol<'t>
fn eq(&self, other: &Symbol<'t>) -> bool
[src]
fn eq(&self, other: &Symbol<'t>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Symbol<'t>) -> bool
[src]
fn ne(&self, other: &Symbol<'t>) -> bool
This method tests for !=
.
impl<'t> Debug for Symbol<'t>
[src]
impl<'t> Debug for Symbol<'t>