[][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.

Fields

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.

Implementations

impl Compiler[src]

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

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(
    self,
    file_name: &str,
    code: &str
) -> Result<CompiledModule>
[src]

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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>,