pub struct ContractCompiler;Expand description
Helper for contract compilation
Implementations§
Source§impl ContractCompiler
impl ContractCompiler
Sourcepub async fn compile_contract(
node_provider: &NodeProvider,
source_code: &str,
) -> Result<CompileResult>
pub async fn compile_contract( node_provider: &NodeProvider, source_code: &str, ) -> Result<CompileResult>
Compile contract from source
Sourcepub async fn compile_script(
node_provider: &NodeProvider,
source_code: &str,
) -> Result<CompileResult>
pub async fn compile_script( node_provider: &NodeProvider, source_code: &str, ) -> Result<CompileResult>
Compile script from source
Auto Trait Implementations§
impl Freeze for ContractCompiler
impl RefUnwindSafe for ContractCompiler
impl Send for ContractCompiler
impl Sync for ContractCompiler
impl Unpin for ContractCompiler
impl UnsafeUnpin for ContractCompiler
impl UnwindSafe for ContractCompiler
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