Struct symbolic_symcache::SymCacheWriter[][src]

pub struct SymCacheWriter<W> { /* fields omitted */ }
Expand description

A high level writer that can construct SymCaches.

When using this writer directly, make sure to call finish at the end, so that all segments are written to the underlying writer and the header is fixed up with the references. Since segments are consecutive chunks of memory, this can only be done once at the end of the writing process.

Implementations

Converts an entire object into a SymCache.

Any object which implements ObjectLike can be written into a SymCache by this function. This already implicictly calls SymCacheWriter::finish, thus consuming the writer.

Constructs a new SymCacheWriter and writes the preamble.

Sets the CPU architecture of this SymCache.

Sets the debug identifier of this SymCache.

Adds a new symbol to this SymCache.

Symbols must be added in ascending order using this method. This will emit a function record internally.

Cleans up a function by recursively removing all empty inlinees, then inserts it into the writer.

Does nothing if the function is empty itself. Functions must be added in ascending order using this method. This emits a function record for this function and for each inlinee recursively.

Persists all open segments to the writer and fixes up the header.

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

Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more

Performs the conversion.

Performs the conversion.

Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. 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.