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.
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 duplicate 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 Debug for PortablePdbCache<'_>
impl Debug for PortablePdbCache<'_>
Source§impl<'data> PartialEq for PortablePdbCache<'data>
impl<'data> PartialEq for PortablePdbCache<'data>
impl<'data> Eq for PortablePdbCache<'data>
impl<'data> StructuralPartialEq for PortablePdbCache<'data>
Auto Trait Implementations§
impl<'data> Freeze for PortablePdbCache<'data>
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<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.