rust-phonenumber icon indicating copy to clipboard operation
rust-phonenumber copied to clipboard

Mutation methods?

Open EndilWayfare opened this issue 5 years ago • 1 comments

Is there any plan to add methods to change parts of a PhoneNumber or create a new one based on an existing one? E.g. set_extension?

I'd rather not rely on getters + string manipulation, since that's the kind of fiddly stuff I'm trying to avoid by using a library. I'd also worry about getting things subtly wrong. I had no idea how deep the international phone number rabbit hole went before I found libphonenumber... :)

EndilWayfare avatar Sep 22 '20 05:09 EndilWayfare

There had been non when you wrote this, but now there might be :wink: . But I have to clean things up first, go through some strange bugs etc.

rustonaut avatar Apr 11 '21 21:04 rustonaut