1
0
Fork 0

Allow inlining Generator::state

This commit is contained in:
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. /// Returns the state of the generator.
#[inline]
pub fn state(&self) -> State { self.state } pub fn state(&self) -> State { self.state }
/// Extracts the stack from a generator when the generator function has returned. /// Extracts the stack from a generator when the generator function has returned.