Struct clippy_utils::HirEqInterExpr
source · pub struct HirEqInterExpr<'a, 'b, 'tcx> {
inner: &'a mut SpanlessEq<'b, 'tcx>,
pub locals: HirIdMap<HirId>,
}
Fields
inner: &'a mut SpanlessEq<'b, 'tcx>
locals: HirIdMap<HirId>
Implementations
sourceimpl HirEqInterExpr<'_, '_, '_>
impl HirEqInterExpr<'_, '_, '_>
pub fn eq_stmt(&mut self, left: &Stmt<'_>, right: &Stmt<'_>) -> bool
sourcefn eq_block(&mut self, left: &Block<'_>, right: &Block<'_>) -> bool
fn eq_block(&mut self, left: &Block<'_>, right: &Block<'_>) -> bool
Checks whether two blocks are the same.
fn should_ignore(&mut self, expr: &Expr<'_>) -> bool
pub fn eq_array_length(&mut self, left: ArrayLen, right: ArrayLen) -> bool
pub fn eq_body(&mut self, left: BodyId, right: BodyId) -> bool
pub fn eq_expr(&mut self, left: &Expr<'_>, right: &Expr<'_>) -> bool
fn eq_exprs(&mut self, left: &[Expr<'_>], right: &[Expr<'_>]) -> bool
fn eq_expr_field(&mut self, left: &ExprField<'_>, right: &ExprField<'_>) -> bool
fn eq_guard(&mut self, left: &Guard<'_>, right: &Guard<'_>) -> bool
fn eq_generic_arg(
&mut self,
left: &GenericArg<'_>,
right: &GenericArg<'_>
) -> bool
fn eq_lifetime(left: &Lifetime, right: &Lifetime) -> bool
fn eq_pat_field(&mut self, left: &PatField<'_>, right: &PatField<'_>) -> bool
sourcefn eq_pat(&mut self, left: &Pat<'_>, right: &Pat<'_>) -> bool
fn eq_pat(&mut self, left: &Pat<'_>, right: &Pat<'_>) -> bool
Checks whether two patterns are the same.
fn eq_qpath(&mut self, left: &QPath<'_>, right: &QPath<'_>) -> bool
pub fn eq_path(&mut self, left: &Path<'_>, right: &Path<'_>) -> bool
fn eq_path_parameters(
&mut self,
left: &GenericArgs<'_>,
right: &GenericArgs<'_>
) -> bool
pub fn eq_path_segments(
&mut self,
left: &[PathSegment<'_>],
right: &[PathSegment<'_>]
) -> bool
pub fn eq_path_segment(
&mut self,
left: &PathSegment<'_>,
right: &PathSegment<'_>
) -> bool
pub fn eq_ty(&mut self, left: &Ty<'_>, right: &Ty<'_>) -> bool
fn eq_type_binding(
&mut self,
left: &TypeBinding<'_>,
right: &TypeBinding<'_>
) -> bool
Auto Trait Implementations
impl<'a, 'b, 'tcx> !RefUnwindSafe for HirEqInterExpr<'a, 'b, 'tcx>
impl<'a, 'b, 'tcx> !Send for HirEqInterExpr<'a, 'b, 'tcx>
impl<'a, 'b, 'tcx> !Sync for HirEqInterExpr<'a, 'b, 'tcx>
impl<'a, 'b, 'tcx> Unpin for HirEqInterExpr<'a, 'b, 'tcx>where
'b: 'a,
'tcx: 'a,
impl<'a, 'b, 'tcx> !UnwindSafe for HirEqInterExpr<'a, 'b, 'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes