pub struct SolidityTestContract {
pub source_unit: SourceUnit,
pub contract_name: String,
}
Expand description
Enhanced test contract representation using proper Solidity AST
Fields§
§source_unit: SourceUnit
§contract_name: String
Implementations§
Source§impl SolidityTestContract
impl SolidityTestContract
pub fn new(contract_name: String, source_unit: SourceUnit) -> Self
Sourcepub fn to_solidity_code(&self) -> String
pub fn to_solidity_code(&self) -> String
Generate Solidity source code from the AST
Trait Implementations§
Source§impl Clone for SolidityTestContract
impl Clone for SolidityTestContract
Source§fn clone(&self) -> SolidityTestContract
fn clone(&self) -> SolidityTestContract
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 SolidityTestContract
impl RefUnwindSafe for SolidityTestContract
impl Send for SolidityTestContract
impl Sync for SolidityTestContract
impl Unpin for SolidityTestContract
impl UnwindSafe for SolidityTestContract
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