[−][src]Enum symbolic_debuginfo::ObjectKind
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 Ord for ObjectKind
[src]
fn cmp(&self, other: &ObjectKind) -> Ordering
[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
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl PartialOrd<ObjectKind> for ObjectKind
[src]
fn partial_cmp(&self, other: &ObjectKind) -> Option<Ordering>
[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 Clone for ObjectKind
[src]
fn clone(&self) -> ObjectKind
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<ObjectKind> for ObjectKind
[src]
fn eq(&self, other: &ObjectKind) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for ObjectKind
[src]
impl Copy for ObjectKind
[src]
impl Debug for ObjectKind
[src]
impl Display for ObjectKind
[src]
impl FromStr for ObjectKind
[src]
type Err = UnknownObjectKindError
The associated error which can be returned from parsing.
fn from_str(string: &str) -> Result<ObjectKind, UnknownObjectKindError>
[src]
impl Hash for ObjectKind
[src]
Auto Trait Implementations
impl Unpin for ObjectKind
impl Send for ObjectKind
impl Sync for ObjectKind
impl RefUnwindSafe for ObjectKind
impl UnwindSafe for ObjectKind
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> RuleType for T where
T: Copy + Eq + Ord + Hash + Debug,
[src]
T: Copy + Eq + Ord + Hash + Debug,