[][src]Enum symbolic_debuginfo::ObjectKind

pub enum ObjectKind {
    None,
    Relocatable,
    Executable,
    Library,
    Dump,
    Debug,
    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.

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 PartialOrd<ObjectKind> for ObjectKind[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Copy for ObjectKind[src]

impl PartialEq<ObjectKind> for ObjectKind[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for ObjectKind[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for ObjectKind[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Eq for ObjectKind[src]

impl Display for ObjectKind[src]

impl Debug for ObjectKind[src]

impl Hash for ObjectKind[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl FromStr for ObjectKind[src]

type Err = UnknownObjectKindError

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for ObjectKind

impl Sync for ObjectKind

Blanket Implementations

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

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

type Owned = T

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

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

impl<T> Erased for T