Allow inlining Generator::state

master
edef 2016-08-13 12:52:12 +02:00
parent 375846bda5
commit bb699c0f6e
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ impl<Item, Stack> Generator<Item, Stack>
}
/// Returns the state of the generator.
#[inline]
pub fn state(&self) -> State { self.state }
/// Extracts the stack from a generator when the generator function has returned.