extern_spec_std_iter_Iterator_enumerate

Function extern_spec_std_iter_Iterator_enumerate 

Source
pub fn extern_spec_std_iter_Iterator_enumerate<Self_>(
    self_: Self_,
) -> Enumerate<Self_>
where Self_: Sized + IteratorSpec + ?Sized + Iterator,
Expand description

extern spec for ::std::iter::Iterator::enumerate

This is not a real function: its only use is for documentation.

terminates

ghost

requires

forall<i: &mut Self> (*i).completed() ==> (*i).produces(Seq::empty(), ^i)

requires

forall<s: Seq<Self::Item>, i: Self> self.produces(s, i) ==> s.len() < std::usize::MAX@

ensures

result.iter() == self && result.n()@ == 0