[][src]Struct compiler::Compiler

pub struct Compiler {
    pub address: AccountAddress,
    pub skip_stdlib_deps: bool,
    pub extra_deps: Vec<CompiledModule>,
    // some fields omitted

An API for the compiler. Supports setting custom options.


address: AccountAddress

The address used as the sender for the compiler.

skip_stdlib_deps: bool

Skip stdlib dependencies if true.

extra_deps: Vec<CompiledModule>

Extra dependencies to compile with.


impl Compiler[src]

pub fn into_compiled_script_and_source_map(
    file_name: &str,
    code: &str
) -> Result<(CompiledScript, SourceMap<Loc>)>

Compiles into a CompiledScript where the bytecode hasn't been serialized.

pub fn into_script_blob(self, file_name: &str, code: &str) -> Result<Vec<u8>>[src]

Compiles the script into a serialized form.

pub fn into_compiled_module(
    file_name: &str,
    code: &str
) -> Result<CompiledModule>

Compiles the module.

pub fn into_module_blob(self, file_name: &str, code: &str) -> Result<Vec<u8>>[src]

Compiles the module into a serialized form.

Trait Implementations

impl Clone for Compiler[src]

impl Debug for Compiler[src]

impl Default for Compiler[src]

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,