PointsVisitor for SingularResolution
to rcore
This commit is contained in:
parent
e8c2ec739d
commit
59f195609e
@ -54,3 +54,9 @@ impl Display for SingularError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Error for SingularError {}
|
impl Error for SingularError {}
|
||||||
|
|
||||||
|
impl<'a, Ctx: Context<'a>> PointsVisitor<'a, Ctx> for Vec<Arc<dyn SingularResolution<'a, Ctx>>> {
|
||||||
|
fn visit<A: Mentionable<'a, Ctx>>(&mut self, point: &Point<'a, Ctx, A>) {
|
||||||
|
self.push(Arc::new(point.clone()) as _);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -59,9 +59,3 @@ impl<'a, Ctx: Context<'a>> Resolver<'a, Ctx> for SingularResolver<'a, Ctx> {
|
|||||||
.unwrap_or_else(Ctx::pure)
|
.unwrap_or_else(Ctx::pure)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, Ctx: Context<'a>> PointsVisitor<'a, Ctx> for Vec<Arc<dyn SingularResolution<'a, Ctx>>> {
|
|
||||||
fn visit<A: Mentionable<'a, Ctx>>(&mut self, point: &Point<'a, Ctx, A>) {
|
|
||||||
self.push(Arc::new(point.clone()) as _);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user