forked from M-Labs/libfringe
Allow inlining Generator::state
This commit is contained in:
parent
375846bda5
commit
bb699c0f6e
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue