[−][src]Struct solana_libra_compiler::Compiler
An API for the compiler. Supports setting custom options.
Fields
address: AccountAddress
The address used as the sender for the compiler.
skip_stdlib_deps: bool
Skip stdlib dependencies if true.
stdlib_address: AccountAddress
The address to use for stdlib.
extra_deps: Vec<VerifiedModule>
Extra dependencies to compile with.
Methods
impl Compiler
[src]
pub fn into_compiled_program(self, code: &str) -> Result<CompiledProgram>
[src]
Compiles into a CompiledProgram
where the bytecode hasn't been serialized.
pub fn into_compiled_program_and_deps(
self,
code: &str
) -> Result<(CompiledProgram, Vec<VerifiedModule>)>
[src]
self,
code: &str
) -> Result<(CompiledProgram, Vec<VerifiedModule>)>
Compiles into a CompiledProgram
and also returns the dependencies.
pub fn into_script(self, code: &str) -> Result<CompiledScript>
[src]
Compiles into a CompiledScript
.
pub fn into_script_blob(self, code: &str) -> Result<Vec<u8>>
[src]
Compiles the script into a serialized form.
pub fn into_compiled_module(self, code: &str) -> Result<CompiledModule>
[src]
Compiles the module.
pub fn into_module_blob(self, code: &str) -> Result<Vec<u8>>
[src]
Compiles the module into a serialized form.
pub fn into_program(
self,
code: &str,
args: Vec<TransactionArgument>
) -> Result<Script>
[src]
self,
code: &str,
args: Vec<TransactionArgument>
) -> Result<Script>
Compiles the code and arguments into a Script
-- the bytecode is serialized.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Compiler
impl Send for Compiler
impl Sync for Compiler
impl Unpin for Compiler
impl UnwindSafe for Compiler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> From<T> for T
[src]
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,