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§

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.

Parses the given buffer into a PortablePdbCache.

Returns the [DebugId] of this portable PDB cache.

Trait Implementations§

The Self type with 'slf lifetimes, returned by as_self.
Returns a reference to self with downcasted lifetime.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.