SpanIgnoredEq

Trait SpanIgnoredEq 

Source
pub trait SpanIgnoredEq {
    // Required method
    fn span_ignored_eq(&self, other: &Self) -> bool;
}
Expand description

Compare equality of two AST nodes without respecting their spans.

This allows to compare AST nodes content while they’re in different locations of syntax tree.

Required Methods§

Source

fn span_ignored_eq(&self, other: &Self) -> bool

Compare equality of two AST nodes without respecting their spans.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SpanIgnoredEq for &str

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Source§

impl SpanIgnoredEq for Cow<'_, str>

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Source§

impl SpanIgnoredEq for bool

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Source§

impl SpanIgnoredEq for char

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Source§

impl SpanIgnoredEq for f32

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Source§

impl SpanIgnoredEq for i32

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Source§

impl SpanIgnoredEq for str

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Source§

impl SpanIgnoredEq for u32

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Source§

impl SpanIgnoredEq for String

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Source§

impl<T> SpanIgnoredEq for Option<T>
where T: SpanIgnoredEq,

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Source§

impl<T> SpanIgnoredEq for Box<T>
where T: SpanIgnoredEq,

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Source§

impl<T> SpanIgnoredEq for Vec<T>
where T: SpanIgnoredEq,

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Source§

impl<T, const N: usize> SpanIgnoredEq for SmallVec<[T; N]>
where T: SpanIgnoredEq,

Source§

fn span_ignored_eq(&self, other: &Self) -> bool

Implementors§