Enum symbolic_debuginfo::ObjectKind
source · 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§
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.
Sources
A container that just stores source code files, but no other debug information corresponding to the original object 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 ObjectKind
impl ObjectKind
sourcepub fn human_name(self) -> &'static str
pub fn human_name(self) -> &'static str
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§
source§impl Clone for ObjectKind
impl Clone for ObjectKind
source§fn clone(&self) -> ObjectKind
fn clone(&self) -> ObjectKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ObjectKind
impl Debug for ObjectKind
source§impl<'de> Deserialize<'de> for ObjectKind
impl<'de> Deserialize<'de> for ObjectKind
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
source§impl Display for ObjectKind
impl Display for ObjectKind
source§impl FromStr for ObjectKind
impl FromStr for ObjectKind
§type Err = UnknownObjectKindError
type Err = UnknownObjectKindError
source§fn from_str(string: &str) -> Result<ObjectKind, UnknownObjectKindError>
fn from_str(string: &str) -> Result<ObjectKind, UnknownObjectKindError>
s
to return a value of this type. Read moresource§impl Hash for ObjectKind
impl Hash for ObjectKind
source§impl Ord for ObjectKind
impl Ord for ObjectKind
source§fn cmp(&self, other: &ObjectKind) -> Ordering
fn cmp(&self, other: &ObjectKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq for ObjectKind
impl PartialEq for ObjectKind
source§fn eq(&self, other: &ObjectKind) -> bool
fn eq(&self, other: &ObjectKind) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ObjectKind
impl PartialOrd for ObjectKind
source§fn partial_cmp(&self, other: &ObjectKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectKind) -> 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 moresource§impl Serialize for ObjectKind
impl Serialize for ObjectKind
impl Copy for ObjectKind
impl Eq for ObjectKind
impl StructuralEq for ObjectKind
impl StructuralPartialEq for ObjectKind
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.