pub enum SourceMap {
SourcePositions(Vec<u8>),
BytecodePositions(Vec<u8>),
InlinedBytecodePositions(Vec<u8>),
}Variants§
SourcePositions(Vec<u8>)
For Ignition / bytecode:
- Maps bytecode-ranges to byte offsets (for the same script as the related js function)
BytecodePositions(Vec<u8>)
For Sparkplug code:
- Maps machine-code ranges to bytecode ranges in the corresponding ignition code object for the same js-function.
InlinedBytecodePositions(Vec<u8>)
For optimized code:
- Maps machine-code-ranges to bytecode ranges in various ignition code objects (inlining might happen from multiple functions)
Implementations§
Source§impl SourceMap
impl SourceMap
Sourcepub fn merge<B>(
field: &mut Option<SourceMap>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<SourceMap>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl StructuralPartialEq for SourceMap
Auto Trait Implementations§
impl Freeze for SourceMap
impl RefUnwindSafe for SourceMap
impl Send for SourceMap
impl Sync for SourceMap
impl Unpin for SourceMap
impl UnsafeUnpin for SourceMap
impl UnwindSafe for SourceMap
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