[][src]Struct moore_vhdl::hir::Slot

pub struct Slot<'t, T>(_)
where
    T: FromAst<'t> + 't
;

A placeholder for an HIR node.

Methods

impl<'t, T> Slot<'t, T> where
    T: FromAst<'t>,
    T::Context: for<'a> Alloc<'a, 't, T> + Clone
[src]

pub fn new(ast: T::LatentInput, context: T::Context) -> Slot<'t, T>
[src]

Create a new slot.

pub fn poll(&self) -> Result<&'t T>
[src]

Poll the slot, creating the HIR node from the AST the first time.

Trait Implementations

impl<'a, 't> Alloc<'a, 'a, Slot<'t, Package2<'t>>> for Arenas2<'t> where
    't: 'a, 
[src]

impl<'a, 't> Alloc<'a, 'a, Slot<'t, TypeDecl2<'t>>> for Arenas2<'t> where
    't: 'a, 
[src]

impl<'a, 't> Alloc<'a, 'a, Slot<'t, SubtypeInd2<'t>>> for Arenas2<'t> where
    't: 'a, 
[src]

impl<'a, 't> Alloc<'a, 'a, Slot<'t, ConstDecl<'t>>> for Arenas2<'t> where
    't: 'a, 
[src]

impl<'t, T, L: ?Sized> LatentNode<'t, L> for Slot<'t, T> where
    &'t T: Into<&'t L>,
    L: 't,
    T: FromAst<'t> + Node<'t>,
    T::Context: for<'a> Alloc<'a, 't, T> + Clone
[src]

impl<'t, T> Debug for Slot<'t, T> where
    T: FromAst<'t>, 
[src]

Auto Trait Implementations

impl<'t, T> Send for Slot<'t, T> where
    T: Sync,
    <T as FromAst<'t>>::Context: Send,
    <T as FromAst<'t>>::LatentInput: Send

impl<'t, T> !Sync for Slot<'t, T>

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.