Enum symbolic::debuginfo::ObjectKind [−][src]
Represents the designated use of the object file and hints at its contents.
Variants
There is no object class specified for this object file.
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.
The Executable file type is the format used by standard executable programs.
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.
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.
The Debug file type designates files that store symbol information for a corresponding binary file.
A container that just stores source code files, but no other debug information corresponding to the original object file.
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
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]
pub fn clone(&self) -> ObjectKind
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ObjectKind
[src]
impl Debug for ObjectKind
[src]
impl<'de> Deserialize<'de> for ObjectKind
[src]
pub fn deserialize<D>(
deserializer: D
) -> Result<ObjectKind, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<ObjectKind, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
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.
pub fn from_str(string: &str) -> Result<ObjectKind, UnknownObjectKindError>
[src]
impl Hash for ObjectKind
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ObjectKind
[src]
pub fn cmp(&self, other: &ObjectKind) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<ObjectKind> for ObjectKind
[src]
pub fn eq(&self, other: &ObjectKind) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<ObjectKind> for ObjectKind
[src]
pub fn partial_cmp(&self, other: &ObjectKind) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for ObjectKind
[src]
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl StructuralEq for ObjectKind
[src]
impl StructuralPartialEq for ObjectKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for ObjectKind
[src]
impl Send for ObjectKind
[src]
impl Sync for ObjectKind
[src]
impl Unpin for ObjectKind
[src]
impl UnwindSafe for ObjectKind
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RuleType for T where
T: Eq + Ord + Copy + Debug + Hash,
[src]
T: Eq + Ord + Copy + Debug + Hash,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,