Implement Send for Generator

master
edef 2016-09-16 05:11:10 -04:00
parent 19ec5ef45b
commit 1783c25c46
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ pub struct Generator<'a, Input: Send + 'a, Output: Send + 'a, Stack: stack::Stac
phantom: PhantomData<(&'a (), *mut Input, *const Output)>
}
unsafe impl<'a, Input, Output, Stack> Send for Generator<'a, Input, Output, Stack>
where Input: Send + 'a, Output: Send + 'a, Stack: stack::Stack + Send {}
impl<'a, Input, Output, Stack> Generator<'a, Input, Output, Stack>
where Input: Send + 'a, Output: Send + 'a, Stack: stack::Stack {
/// Creates a new generator.