Struct BytecodeProgram
pub struct BytecodeProgram {
pub spec: ProgramSpec,
pub code: Vec<Instr>,
pub strings: Vec<String>,
pub payloads: Vec<Vec<u8>>,
pub matchers: Vec<QualifiedMatch>,
pub extracts: Vec<ExtractSource>,
pub evidence: Vec<EvidenceKind>,
}Expand description
Compiled script ready for the executor (probes, metadata, and instruction stream).
Fields§
§spec: ProgramSpecProbe table and finding metadata (the non-executable part).
code: Vec<Instr>The instruction stream the executor walks.
strings: Vec<String>String pool. Instruction operands index into this.
payloads: Vec<Vec<u8>>Binary payloads referenced by Send.payload (override bytes).
matchers: Vec<QualifiedMatch>Matcher pool, indexed by Match/Assert/IfMatch operands.
extracts: Vec<ExtractSource>Extract-rule pool, indexed by Extract operands.
evidence: Vec<EvidenceKind>Evidence-rule pool, indexed by Evidence operands.
Implementations§
§impl BytecodeProgram
impl BytecodeProgram
pub fn instr_count(&self) -> usize
pub fn instr_count(&self) -> usize
Number of instructions in the program’s code stream.
Trait Implementations§
§impl Clone for BytecodeProgram
impl Clone for BytecodeProgram
§fn clone(&self) -> BytecodeProgram
fn clone(&self) -> BytecodeProgram
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BytecodeProgram
impl RefUnwindSafe for BytecodeProgram
impl Send for BytecodeProgram
impl Sync for BytecodeProgram
impl Unpin for BytecodeProgram
impl UnsafeUnpin for BytecodeProgram
impl UnwindSafe for BytecodeProgram
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