Refactor Value::pointer_functions by using Iterator::try_fold by Krout0n · Pull Request #758 · serde-rs/json

By using Iterator::try_fold, we don't need to go a roundabout route for borrow checker anymore.