pub enum Segment {
CODE,
DATA,
LIT,
BSS,
JTRG,
}
Expand description
The different segments/sections in a QVM file.
See ioquake3’s segmentName_t
in tools/asm/q3asm.c
Variants§
CODE
The code segment, consisting of instructions.
DATA
The data segment, consisting of word-sized data.
LIT
The LIT segment, consisting of byte-sized data.
BSS
The BSS pseudo-segment, consisting of uninitialized data.
JTRG
The jump table targets pseudo-segment, consisting of jump label addresses.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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