pub struct WindowIter<'self, T> { priv v: &'self [T], priv size: uint, }
An iterator over the (overlapping) slices of length size
within
a vector.
impl<'self, T: Clone> Clone for WindowIter<'self, T>
fn clone(&self) -> WindowIter<'self, T>
Returns a copy of the value. The contents of owned pointers are copied to maintain uniqueness, while the contents of managed pointers are not copied.
impl<'self, T> Iterator<&'self [T]> for WindowIter<'self, T>
fn next(&mut self) -> Option<&'self [T]>
Advance the iterator and return the next value. Return None
when the end is reached.
fn size_hint(&self) -> (uint, Option<uint>)
Return a lower bound and upper bound on the remaining length of the iterator.
The common use case for the estimate is pre-allocating space to store the results.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).