Enum symbolic_common::types::ObjectClass
source · pub enum ObjectClass {
None,
Relocatable,
Executable,
Library,
Dump,
Debug,
Other,
}
Expand description
Represents the designated use of the object file and hints at its contents.
Variants§
None
There is no object class specified for this object file.
Relocatable
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.
Executable
The Executable file type is the format used by standard executable programs.
Library
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.
Dump
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.
Debug
The Debug file type designates files that store symbol information for a corresponding binary file.
Other
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§
source§impl ObjectClass
impl ObjectClass
Trait Implementations§
source§impl Clone for ObjectClass
impl Clone for ObjectClass
source§fn clone(&self) -> ObjectClass
fn clone(&self) -> ObjectClass
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ObjectClass
impl Debug for ObjectClass
source§impl Display for ObjectClass
impl Display for ObjectClass
source§impl FromStr for ObjectClass
impl FromStr for ObjectClass
§type Err = UnknownObjectClassError
type Err = UnknownObjectClassError
source§fn from_str(string: &str) -> Result<ObjectClass, UnknownObjectClassError>
fn from_str(string: &str) -> Result<ObjectClass, UnknownObjectClassError>
s
to return a value of this type. Read moresource§impl Hash for ObjectClass
impl Hash for ObjectClass
source§impl Ord for ObjectClass
impl Ord for ObjectClass
source§fn cmp(&self, other: &ObjectClass) -> Ordering
fn cmp(&self, other: &ObjectClass) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq<ObjectClass> for ObjectClass
impl PartialEq<ObjectClass> for ObjectClass
source§fn eq(&self, other: &ObjectClass) -> bool
fn eq(&self, other: &ObjectClass) -> bool
source§impl PartialOrd<ObjectClass> for ObjectClass
impl PartialOrd<ObjectClass> for ObjectClass
source§fn partial_cmp(&self, other: &ObjectClass) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectClass) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more