[][src]Enum symbolic_debuginfo::ObjectKind

pub enum ObjectKind {
    None,
    Relocatable,
    Executable,
    Library,
    Dump,
    Debug,
    Sources,
    Other,
}

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.

Methods

impl ObjectKind[src]

pub fn name(self) -> &'static str[src]

Returns the name of the object kind.

pub fn human_name(self) -> &'static str[src]

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

impl Clone for ObjectKind[src]

impl Copy for ObjectKind[src]

impl Debug for ObjectKind[src]

impl<'de> Deserialize<'de> for ObjectKind[src]

impl Display for ObjectKind[src]

impl Eq for ObjectKind[src]

impl FromStr for ObjectKind[src]

type Err = UnknownObjectKindError

The associated error which can be returned from parsing.

impl Hash for ObjectKind[src]

impl Ord for ObjectKind[src]

impl PartialEq<ObjectKind> for ObjectKind[src]

impl PartialOrd<ObjectKind> for ObjectKind[src]

impl Serialize for ObjectKind[src]

impl StructuralEq for ObjectKind[src]

impl StructuralPartialEq for ObjectKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RuleType for T where
    T: Eq + Ord + Copy + Debug + Hash
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.