Enum object::write::StandardSection
source · #[non_exhaustive]pub enum StandardSection {
Text,
Data,
ReadOnlyData,
ReadOnlyDataWithRel,
ReadOnlyString,
UninitializedData,
Tls,
UninitializedTls,
TlsVariables,
Common,
GnuProperty,
}
Expand description
A standard section 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.
Text
Data
ReadOnlyData
ReadOnlyDataWithRel
ReadOnlyString
UninitializedData
Tls
UninitializedTls
Zero-fill TLS initializers. Unsupported for COFF.
TlsVariables
TLS variable structures. Only supported for Mach-O.
Common
Common data. Only supported for Mach-O.
GnuProperty
Notes for GNU properties. Only supported for ELF.
Implementations§
source§impl StandardSection
impl StandardSection
sourcepub fn kind(self) -> SectionKind
pub fn kind(self) -> SectionKind
Return the section kind of a standard section.
Trait Implementations§
source§impl Clone for StandardSection
impl Clone for StandardSection
source§fn clone(&self) -> StandardSection
fn clone(&self) -> StandardSection
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 StandardSection
impl Debug for StandardSection
source§impl Hash for StandardSection
impl Hash for StandardSection
source§impl Ord for StandardSection
impl Ord for StandardSection
source§fn cmp(&self, other: &StandardSection) -> Ordering
fn cmp(&self, other: &StandardSection) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for StandardSection
impl PartialEq for StandardSection
source§impl PartialOrd for StandardSection
impl PartialOrd for StandardSection
impl Copy for StandardSection
impl Eq for StandardSection
impl StructuralPartialEq for StandardSection
Auto Trait Implementations§
impl Freeze for StandardSection
impl RefUnwindSafe for StandardSection
impl Send for StandardSection
impl Sync for StandardSection
impl Unpin for StandardSection
impl UnwindSafe for StandardSection
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.