pub struct CompilationCtx {
pub pragmas: Vec<String>,
pub imports: Vec<String>,
pub include_runtime: bool,
}Expand description
Compilation context for a single Solidity source unit.
Fields§
§pragmas: Vec<String>Pragma directives.
imports: Vec<String>Import statements.
include_runtime: boolWhether to include the runtime library.
Trait Implementations§
Source§impl Clone for CompilationCtx
impl Clone for CompilationCtx
Source§fn clone(&self) -> CompilationCtx
fn clone(&self) -> CompilationCtx
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 moreSource§impl Debug for CompilationCtx
impl Debug for CompilationCtx
Auto Trait Implementations§
impl Freeze for CompilationCtx
impl RefUnwindSafe for CompilationCtx
impl Send for CompilationCtx
impl Sync for CompilationCtx
impl Unpin for CompilationCtx
impl UnsafeUnpin for CompilationCtx
impl UnwindSafe for CompilationCtx
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