pub fn rewind(&mut self) -> bool {
        if let Some(rewind) = unsafe { (*self.funcs).rewind } {
            unsafe {
                rewind(&mut *self);
            }
        }

        !ExecutorGlobals::has_exception()
    }
Rewind the iterator to the first element.

As an example this will call the user defined rewind method of the
`\Iterator` interface. see <https://www.php.net/manual/en/iterator.rewind.php>

# Returns

Returns true if the iterator was successfully rewind, false otherwise.
(when there is an exception during rewind)
src/types/iterator.rs