Struct symbolic_ppdb::PortablePdbCache
source · pub struct PortablePdbCache<'data> { /* private fields */ }
Expand description
The serialized PortablePdbCache binary format.
This can be parsed from a binary buffer via PortablePdbCache::parse
and lookups on it can be performed
via the PortablePdbCache::lookup
method.
Implementations§
source§impl<'data> PortablePdbCache<'data>
impl<'data> PortablePdbCache<'data>
sourcepub fn lookup(&self, func_idx: u32, il_offset: u32) -> Option<LineInfo<'data>>
pub fn lookup(&self, func_idx: u32, il_offset: u32) -> Option<LineInfo<'data>>
Looks up line information for a function in the cache.
func_idx
is the (1-based) index of the function in the ECMA-335 MethodDef
table
(see the ECMA-335 spec, Section II.22.26). In C#, it is encoded in the
MetadataToken
property on the MethodBase
class.
See Metadata Tokens for an
explanation of the encoding.
il_offset
is the offset from the start of the method’s Intermediate Language code.
It can be obtained via the StackFrame.GetILOffset
method.
source§impl<'data> PortablePdbCache<'data>
impl<'data> PortablePdbCache<'data>
Trait Implementations§
source§impl<'slf, 'd: 'slf> AsSelf<'slf> for PortablePdbCache<'d>
impl<'slf, 'd: 'slf> AsSelf<'slf> for PortablePdbCache<'d>
source§impl<'data> Clone for PortablePdbCache<'data>
impl<'data> Clone for PortablePdbCache<'data>
source§fn clone(&self) -> PortablePdbCache<'data>
fn clone(&self) -> PortablePdbCache<'data>
Returns a copy 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<'data> Debug for PortablePdbCache<'data>
impl<'data> Debug for PortablePdbCache<'data>
source§impl<'data> PartialEq<PortablePdbCache<'data>> for PortablePdbCache<'data>
impl<'data> PartialEq<PortablePdbCache<'data>> for PortablePdbCache<'data>
source§fn eq(&self, other: &PortablePdbCache<'data>) -> bool
fn eq(&self, other: &PortablePdbCache<'data>) -> bool
impl<'data> Eq for PortablePdbCache<'data>
impl<'data> StructuralEq for PortablePdbCache<'data>
impl<'data> StructuralPartialEq for PortablePdbCache<'data>
Auto Trait Implementations§
impl<'data> RefUnwindSafe for PortablePdbCache<'data>
impl<'data> Send for PortablePdbCache<'data>
impl<'data> Sync for PortablePdbCache<'data>
impl<'data> Unpin for PortablePdbCache<'data>
impl<'data> UnwindSafe for PortablePdbCache<'data>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.