[−]Struct symbolic::debuginfo::pdb::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
.
Implementations
impl<'t> Symbol<'t>
pub fn index(&self) -> SymbolIndex
The index of this symbol in the containing symbol stream.
pub fn raw_kind(&self) -> u16
Returns the kind of symbol identified by this Symbol.
pub fn raw_bytes(&self) -> &'t [u8]ⓘ
Returns the raw bytes of this symbol record, including the symbol type and extra data, but not including the preceding symbol length indicator.
pub fn parse(&self) -> Result<SymbolData<'t>, Error>
Parse the symbol into the SymbolData
it contains.
pub fn starts_scope(&self) -> bool
Returns whether this symbol starts a scope.
If true
, this symbol has a parent
and an end
field, which contains the offset of the
corrsponding end symbol.
pub fn ends_scope(&self) -> bool
Returns whether this symbol declares the end of a scope.
Trait Implementations
impl<'t> Clone for Symbol<'t>
pub fn clone(&self) -> Symbol<'t>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'t> Copy for Symbol<'t>
impl<'t> Debug for Symbol<'t>
impl<'t> PartialEq<Symbol<'t>> for Symbol<'t>
impl<'t> StructuralPartialEq for Symbol<'t>
Auto Trait Implementations
impl<'t> RefUnwindSafe for Symbol<'t>
[src]
impl<'t> Send for Symbol<'t>
[src]
impl<'t> Sync for Symbol<'t>
[src]
impl<'t> Unpin for Symbol<'t>
[src]
impl<'t> UnwindSafe for Symbol<'t>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,