pub struct VisitedExpr<V: ExprVisitor> {
pub ty: TypeId,
pub value: V::ExprId,
}Expand description
Information about an expression after it has been fully visited in RuleVisitor::add_expr.
Fields§
§ty: TypeIdThe type of the top-level expression.
value: V::ExprIdThe identifier returned by the visitor for the top-level expression.
Trait Implementations§
Source§impl<V: Clone + ExprVisitor> Clone for VisitedExpr<V>
impl<V: Clone + ExprVisitor> Clone for VisitedExpr<V>
Source§fn clone(&self) -> VisitedExpr<V>
fn clone(&self) -> VisitedExpr<V>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<V: Copy + ExprVisitor> Copy for VisitedExpr<V>
Auto Trait Implementations§
impl<V> Freeze for VisitedExpr<V>
impl<V> RefUnwindSafe for VisitedExpr<V>
impl<V> Send for VisitedExpr<V>
impl<V> Sync for VisitedExpr<V>
impl<V> Unpin for VisitedExpr<V>
impl<V> UnwindSafe for VisitedExpr<V>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)