Trait chalk_ir::could_match::CouldMatch [−][src]
pub trait CouldMatch<T: ?Sized + HasInterner> { fn could_match(
&self,
interner: &T::Interner,
db: &dyn UnificationDatabase<T::Interner>,
other: &T
) -> bool; }
Expand description
A fast check to see whether two things could ever possibly match.
Required methods
fn could_match(
&self,
interner: &T::Interner,
db: &dyn UnificationDatabase<T::Interner>,
other: &T
) -> bool
[src]
fn could_match(
&self,
interner: &T::Interner,
db: &dyn UnificationDatabase<T::Interner>,
other: &T
) -> bool
[src]Checks whether self
and other
could possibly match.
Implementors
fn could_match(
&self,
interner: &I,
db: &dyn UnificationDatabase<I>,
other: &DomainGoal<I>
) -> bool
[src]fn could_match(
&self,
interner: &I,
db: &dyn UnificationDatabase<I>,
other: &DomainGoal<I>
) -> bool
[src]impl<T: ?Sized, I> CouldMatch<T> for T where
T: Zip<I> + HasInterner<Interner = I>,
I: Interner,
[src]
impl<T: ?Sized, I> CouldMatch<T> for T where
T: Zip<I> + HasInterner<Interner = I>,
I: Interner,
[src]