pub struct SourceMapInfo {
pub contract_name: String,
pub sources: Vec<String>,
pub bytecode: Vec<u8>,
pub srcmap_entries: Vec<SourceMapEntry>,
pub pc_to_instruction_index: BTreeMap<usize, usize>,
pub compiler_version: Option<String>,
}Fields§
§contract_name: String§sources: Vec<String>§bytecode: Vec<u8>§srcmap_entries: Vec<SourceMapEntry>§pc_to_instruction_index: BTreeMap<usize, usize>§compiler_version: Option<String>Implementations§
Source§impl SourceMapInfo
impl SourceMapInfo
pub fn source_entry_at_pc(&self, pc: usize) -> Option<&SourceMapEntry>
pub fn source_info(&self, pc: usize) -> Option<(&str, i64, i64)>
Trait Implementations§
Source§impl Clone for SourceMapInfo
impl Clone for SourceMapInfo
Source§impl Debug for SourceMapInfo
impl Debug for SourceMapInfo
Source§impl<'de> Deserialize<'de> for SourceMapInfo
impl<'de> Deserialize<'de> for SourceMapInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SourceMapInfo
Source§impl PartialEq for SourceMapInfo
impl PartialEq for SourceMapInfo
Source§impl Serialize for SourceMapInfo
impl Serialize for SourceMapInfo
impl StructuralPartialEq for SourceMapInfo
Auto Trait Implementations§
impl Freeze for SourceMapInfo
impl RefUnwindSafe for SourceMapInfo
impl Send for SourceMapInfo
impl Sync for SourceMapInfo
impl Unpin for SourceMapInfo
impl UnsafeUnpin for SourceMapInfo
impl UnwindSafe for SourceMapInfo
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