loosen Point::resolve
This commit is contained in:
parent
aed81eac83
commit
c288b106e3
@ -26,7 +26,10 @@ impl<'a, Ctx: Context<'a>, A: MentionableBase<'a, Ctx>> Clone for Point<'a, Ctx,
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, Ctx: Context<'a>, A: Mentionable<'a, Ctx>> Point<'a, Ctx, A> {
|
||||
impl<'a, Ctx: Context<'a>, A: MentionableBase<'a, Ctx>> Point<'a, Ctx, A>
|
||||
where
|
||||
A::Fctr: FactoryParse<'a, Ctx>,
|
||||
{
|
||||
/// See [`Origin::resolve`].
|
||||
pub fn resolve(&self) -> Resolution<'a, Ctx, A> {
|
||||
self.origin.clone().resolve()
|
||||
|
@ -210,6 +210,7 @@ impl<'a, Ctx: Context<'a>, A: StackCompatible<'a, Ctx> + Mentionable<'a, Ctx> +
|
||||
ExtStackClone<'a, Ctx, A> for Stack<'a, Ctx, A>
|
||||
where
|
||||
StackNode<'a, Ctx, A>: Mentionable<'a, Ctx, _Fctr = StackNodeFactory<A::Fctr>>,
|
||||
StackNodeFactory<A::Fctr>: FactoryParse<'a, Ctx>,
|
||||
{
|
||||
fn vec(self) -> StackVecWrapped<'a, Ctx, A> {
|
||||
Ctx::T::iterate_mut((vec![], self), |(mut vec, stack)| match stack {
|
||||
|
Loading…
Reference in New Issue
Block a user