Enum object::read::ObjectKind
source · #[non_exhaustive]pub enum ObjectKind {
Unknown,
Relocatable,
Executable,
Dynamic,
Core,
}
Expand description
An object kind.
Returned by Object::kind
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
The object kind is unknown.
Relocatable
Relocatable object.
Executable
Executable.
Dynamic
Dynamic shared object.
Core
Core.
Trait Implementations§
source§impl Clone for ObjectKind
impl Clone for ObjectKind
source§fn clone(&self) -> ObjectKind
fn clone(&self) -> ObjectKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ObjectKind
impl Debug for ObjectKind
source§impl Hash for ObjectKind
impl Hash for ObjectKind
source§impl PartialEq for ObjectKind
impl PartialEq for ObjectKind
source§fn eq(&self, other: &ObjectKind) -> bool
fn eq(&self, other: &ObjectKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ObjectKind
impl Eq for ObjectKind
impl StructuralPartialEq for ObjectKind
Auto Trait Implementations§
impl Freeze for ObjectKind
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)