[][src]Struct ink_lang_ir::Config

pub struct Config { /* fields omitted */ }

The ink! configuration.

Implementations

impl Config[src]

pub fn env_types(&self) -> Path[src]

Returns the environmental types definition if specified. Otherwise returns the default environmental types definition provided by ink!.

pub fn is_dynamic_storage_allocator_enabled(&self) -> bool[src]

Returns true if the dynamic storage allocator facilities are enabled for the ink! smart contract, false otherwise.

If nothing has been specified returns the default which is false.

pub fn is_compile_as_dependency_enabled(&self) -> bool[src]

Return true if this ink! smart contract shall always be compiled as if it was a dependency of another smart contract, returns false otherwise.

If nothing has been specified returns the default which is false.

Trait Implementations

impl Debug for Config[src]

impl Default for Config[src]

impl Eq for Config[src]

impl PartialEq<Config> for Config[src]

impl StructuralEq for Config[src]

impl StructuralPartialEq for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl !Send for Config

impl !Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

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> Same<T> for T

type Output = T

Should always be Self

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.