Struct cranelift_isle::sema::VisitedExpr
source · 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>where
V::ExprId: Clone,
impl<V: Clone + ExprVisitor> Clone for VisitedExpr<V>where V::ExprId: Clone,
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>where V::ExprId: Copy,
Auto Trait Implementations§
impl<V> RefUnwindSafe for VisitedExpr<V>where <V as ExprVisitor>::ExprId: RefUnwindSafe,
impl<V> Send for VisitedExpr<V>where <V as ExprVisitor>::ExprId: Send,
impl<V> Sync for VisitedExpr<V>where <V as ExprVisitor>::ExprId: Sync,
impl<V> Unpin for VisitedExpr<V>where <V as ExprVisitor>::ExprId: Unpin,
impl<V> UnwindSafe for VisitedExpr<V>where <V as ExprVisitor>::ExprId: UnwindSafe,
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