[][src]Struct runestick::unit::ImportKey

pub struct ImportKey {
    pub item: Item,
    pub component: Component,
}

The key of an import.

Fields

item: Item

Where the import is located.

component: Component

The component that is imported.

Implementations

impl ImportKey[src]

pub fn new<C>(item: Item, component: C) -> Self where
    C: Into<Component>, 
[src]

Construct a new import key.

pub fn component<C>(component: C) -> Self where
    C: Into<Component>, 
[src]

Construct an import key for a single component.

Trait Implementations

impl Debug for ImportKey[src]

impl Eq for ImportKey[src]

impl Hash for ImportKey[src]

impl PartialEq<ImportKey> for ImportKey[src]

impl StructuralEq for ImportKey[src]

impl StructuralPartialEq for ImportKey[src]

Auto Trait Implementations

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