Allow inlining Generator::state

This commit is contained in:
edef 2016-08-13 12:52:12 +02:00
parent 375846bda5
commit bb699c0f6e

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.