Open
Description
I'm working on the issue #299 right now and I saw some methods return Result<(), ()>
, the issue I mentionned is about making them return a ParseResult<()>
, but wouldn't it be better if they returned ParseResult<Self>
, in order to allow method chaining with ?
or (old) unwrap()
?
This would actually be useful mainly for setters, I set up an actual list of them:
- #set_href
- HostInternal#serialize<S> (part of serde crate, but I think can be replaced)
- (IDNA) #domain_to_unicode
- Url#set_port
- Url#set_ip_host
- Url#set_password
- Url#set_username
- Url#set_scheme
Could work on this, be I need to be validated by someone before.