Skip to main content

SameDeclarations

Trait SameDeclarations 

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

Equality that ignores source positions, so shifting a declaration to another line doesn’t count as changing it.

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: SameDeclarations> SameDeclarations for [T]

Source§

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

Implementors§