Enum symbolic_debuginfo::ObjectKind [−][src]
pub enum ObjectKind {
None,
Relocatable,
Executable,
Library,
Dump,
Debug,
Sources,
Other,
}
Expand description
Represents the designated use of the object file and hints at its contents.
Variants
There is no object class specified for this object file.
The Relocatable file type is the format used for intermediate object files. It is a very compact format containing all its sections in one segment. The compiler and assembler usually create one Relocatable file for each source code file. By convention, the file name extension for this format is .o.
The Executable file type is the format used by standard executable programs.
The Library file type is for dynamic shared libraries. It contains some additional tables to support multiple modules. By convention, the file name extension for this format is .dylib, except for the main shared library of a framework, which does not usually have a file name extension.
The Dump file type is used to store core files, which are traditionally created when a program crashes. Core files store the entire address space of a process at the time it crashed. You can later run gdb on the core file to figure out why the crash occurred.
The Debug file type designates files that store symbol information for a corresponding binary file.
A container that just stores source code files, but no other debug information corresponding to the original object file.
The Other type represents any valid object class that does not fit any of the other classes. These are mostly CPU or OS dependent, or unique to a single kind of object.
Implementations
Returns a human readable name of the object kind.
This is also used in alternate formatting:
assert_eq!(format!("{:#}", ObjectKind::Executable), ObjectKind::Executable.human_name());
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
type Err = UnknownObjectKindError
type Err = UnknownObjectKindError
The associated error which can be returned from parsing.
Parses a string s
to return a value of this type. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ObjectKind
impl Send for ObjectKind
impl Sync for ObjectKind
impl Unpin for ObjectKind
impl UnwindSafe for ObjectKind
Blanket Implementations
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
impl<T> Indentable for T where
T: Display,
impl<T> Indentable for T where
T: Display,
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
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