pub enum SegmentClass {
Code,
Data,
Const,
Stack,
Bss,
External,
Common,
Absolute,
Other(String),
}Expand description
A segment’s classification, from its class_name string.
IDA documents the segment class as arbitrary text (max 8 characters): a handful of
predefined names map to known segment kinds, but a loader or user can set anything.
Other carries any class string outside that predefined set (e.g. UNK,
or a loader-specific name).
Variants§
Code
CODE: executable code.
Data
DATA: general read/write data.
Const
CONST: read-only data.
Stack
STACK: the stack segment.
Bss
BSS: uninitialized data.
External
XTRN: IDA’s extern-definitions pseudo-segment (imports/externs).
Common
COMM: communal (COMMON-block) definitions.
Absolute
ABS: absolute-symbol definitions.
Other(String)
Any class string outside the predefined set, loader- or user-defined.
Trait Implementations§
Source§impl Clone for SegmentClass
impl Clone for SegmentClass
Source§fn clone(&self) -> SegmentClass
fn clone(&self) -> SegmentClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SegmentClass
impl Debug for SegmentClass
Source§impl Display for SegmentClass
impl Display for SegmentClass
impl Eq for SegmentClass
Source§impl From<SegmentClass> for String
Reconstruct the raw class string via Display.
impl From<SegmentClass> for String
Reconstruct the raw class string via Display.
Source§fn from(class: SegmentClass) -> Self
fn from(class: SegmentClass) -> Self
Converts to this type from the input type.
Source§impl Hash for SegmentClass
impl Hash for SegmentClass
Source§impl PartialEq for SegmentClass
impl PartialEq for SegmentClass
impl StructuralPartialEq for SegmentClass
Auto Trait Implementations§
impl Freeze for SegmentClass
impl RefUnwindSafe for SegmentClass
impl Send for SegmentClass
impl Sync for SegmentClass
impl Unpin for SegmentClass
impl UnsafeUnpin for SegmentClass
impl UnwindSafe for SegmentClass
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