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

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

A placeholder for an HIR node.

Implementations

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, ConstDecl<'t>>> for Arenas2<'t> where
    't: 'a, 
[src]

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, SubtypeInd2<'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<'t, T> Debug for Slot<'t, T> where
    T: FromAst<'t>, 
[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]

Auto Trait Implementations

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

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>

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

impl<'t, T> UnwindSafe for Slot<'t, T> where
    T: RefUnwindSafe,
    <T as FromAst<'t>>::Context: UnwindSafe,
    <T as FromAst<'t>>::LatentInput: UnwindSafe

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.