[]Struct solana_libra_ir_to_bytecode::parser::ast::ImportDefinition

pub struct ImportDefinition {
    pub ident: ModuleIdent,
    pub alias: ModuleName,
}

A dependency/import declaration

Fields

ident: ModuleIdent

the dependency addr.m or Transaction.m

alias: ModuleName

the alias for that dependency m

Methods

impl ImportDefinition

pub fn new(
    ident: ModuleIdent,
    alias_opt: Option<ModuleName>
) -> ImportDefinition

Creates a new import definition from a module identifier and an optional alias If the alias is None, the alias will be a cloned copy of the identifiers module name

Trait Implementations

impl PartialEq<ImportDefinition> for ImportDefinition

impl Debug for ImportDefinition

impl Clone for ImportDefinition

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> Erased for T

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized