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: TypeId
The type of the top-level expression.
value: V::ExprId
The 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 copy of the value. Read more
1.0.0 · Source§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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)