[−][src]Struct moore_vhdl::hir::Slot
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]
T: FromAst<'t>,
T::Context: for<'a> Alloc<'a, 't, T> + Clone,
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]
't: 'a,
impl<'a, 't> Alloc<'a, 'a, Slot<'t, Package2<'t>>> for Arenas2<'t> where
't: 'a,
[src]
't: 'a,
impl<'a, 't> Alloc<'a, 'a, Slot<'t, SubtypeInd2<'t>>> for Arenas2<'t> where
't: 'a,
[src]
't: 'a,
fn alloc(
&'a self,
value: Slot<'t, SubtypeInd2<'t>>
) -> &'a mut Slot<'t, SubtypeInd2<'t>>
[src]
&'a self,
value: Slot<'t, SubtypeInd2<'t>>
) -> &'a mut Slot<'t, SubtypeInd2<'t>>
impl<'a, 't> Alloc<'a, 'a, Slot<'t, TypeDecl2<'t>>> for Arenas2<'t> where
't: 'a,
[src]
't: 'a,
impl<'t, T> Debug for Slot<'t, T> where
T: FromAst<'t>,
[src]
T: FromAst<'t>,
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]
&'t T: Into<&'t L>,
L: 't,
T: FromAst<'t> + Node<'t>,
T::Context: for<'a> Alloc<'a, 't, T> + Clone,
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,
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,
<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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,