Expand description
Common functionality for symbolic
.
This crate exposes a set of key types:
ByteView
: Gives access to binary data in-memory or on the file system.SelfCell
: Allows to create self-referential types.Name
: A symbol name that can be demangled with thedemangle
feature.InstructionInfo
: A utility type for instruction pointer heuristics.- Functions and utilities to deal with paths from different platforms.
§Features
serde
(optional): Implementsserde::Deserialize
andserde::Serialize
for all data types. In thesymbolic
crate, this feature is exposed viacommon-serde
.
This module is part of the symbolic
crate.
Structs§
- Breakpad
Format - Wrapper around
DebugId
for Breakpad formatting. - Byte
View - A smart pointer for byte data.
- CodeId
- Unique platform-dependent identifier of code files.
- DebugId
- Unique identifier for debug information files and their debug information.
- Instruction
Info - Helper to work with instruction addresses.
- Name
- The name of a potentially mangled symbol.
- Parse
Code IdError - Indicates an error parsing a
CodeId
. - Parse
Debug IdError - Indicates an error parsing a
DebugId
. - Self
Cell - A container carrying a derived object alongside its owner.
- Source
Link Mappings - A structure mapping source file paths to remote locations.
- Unknown
Arch Error - An error returned for an invalid
Arch
. - Unknown
Language Error - An error returned for an invalid
Language
. - Uuid
- A Universally Unique Identifier (UUID).
Enums§
- Arch
- An enumeration of CPU architectures and variants.
- CpuFamily
- Represents a family of CPUs.
- Language
- A programming language declared in debugging information.
- Name
Mangling - A
Name
s mangling state.
Traits§
- AsSelf
- Safe downcasting of dependent lifetime bounds on structs.
- DSym
Path Ext - Extensions to
Path
for handlingdSYM
directories. - Stable
Deref - An unsafe marker trait for types that deref to a stable address, even when moved. For example, this is implemented by Box, Vec, Rc, Arc and String, among others. Even when a Box is moved, the underlying storage remains at a fixed location.
Functions§
- clean_
path - Simplifies paths by stripping redundant components.
- join_
path - Joins paths of various platforms.
- shorten_
path - Trims a path to a given length.
- split_
path - Splits off the last component of a path.
- split_
path_ bytes - Splits off the last component of a path given as bytes.