Copy is best avoided on iterators
This commit is contained in:
parent
544ad37753
commit
22228186c0
1 changed files with 1 additions and 1 deletions
|
|
@ -444,7 +444,7 @@ pub fn unfold<St, T, F>(initial_state: St, f: F) -> Unfold<St, F>
|
|||
/// See its documentation for more.
|
||||
///
|
||||
/// [`unfold`]: fn.unfold.html
|
||||
#[derive(Copy, Clone)]
|
||||
#[derive(Clone)]
|
||||
#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")]
|
||||
pub struct Unfold<St, F> {
|
||||
state: St,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue