Send
/Sync
for MappableOrigin
This commit is contained in:
parent
d09e99b112
commit
f0170910f6
@ -13,8 +13,10 @@ pub fn wrapped_origin<'a, Ctx: 'a + Context, A: Mentionable<'a, Ctx>>(
|
||||
pub trait MappableOrigin<'a, Ctx: 'a + Context>: Origin<'a, Ctx> {
|
||||
fn map<B: Mentionable<'a, Ctx>>(
|
||||
self: Rc<Self>,
|
||||
map_ok: impl 'a + Clone + Fn(Rc<Self::Mtbl>) -> B,
|
||||
map_ok: impl 'a + Send + Sync + Clone + Fn(Rc<Self::Mtbl>) -> B,
|
||||
map_err: impl 'a
|
||||
+ Send
|
||||
+ Sync
|
||||
+ Clone
|
||||
+ Fn(
|
||||
<<Self::Mtbl as Mentionable<'a, Ctx>>::Fctr as Factory<'a, Ctx>>::ParseError,
|
||||
@ -26,8 +28,10 @@ pub trait MappableOrigin<'a, Ctx: 'a + Context>: Origin<'a, Ctx> {
|
||||
impl<'a, Ctx: 'a + Context, O: ?Sized + Origin<'a, Ctx>> MappableOrigin<'a, Ctx> for O {
|
||||
fn map<B: Mentionable<'a, Ctx>>(
|
||||
self: Rc<Self>,
|
||||
map_ok: impl 'a + Clone + Fn(Rc<Self::Mtbl>) -> B,
|
||||
map_ok: impl 'a + Send + Sync + Clone + Fn(Rc<Self::Mtbl>) -> B,
|
||||
map_err: impl 'a
|
||||
+ Send
|
||||
+ Sync
|
||||
+ Clone
|
||||
+ Fn(
|
||||
<<Self::Mtbl as Mentionable<'a, Ctx>>::Fctr as Factory<'a, Ctx>>::ParseError,
|
||||
|
Loading…
Reference in New Issue
Block a user