Struct url::ParseOptions
[−]
[src]
pub struct ParseOptions<'a> { /* fields omitted */ }
Full configuration for the URL parser.
Methods
impl<'a> ParseOptions<'a>
[src]
pub fn base_url(self, new: Option<&'a Url>) -> Self
[src]
Change the base URL
pub fn log_syntax_violation(self, new: Option<&'a Fn(&'static str)>) -> Self
[src]
Call the provided function or closure on non-fatal parse errors.
pub fn parse(self, input: &str) -> Result<Url, ParseError>
[src]
Parse an URL string with the configuration so far.
Trait Implementations
impl<'a> Copy for ParseOptions<'a>
[src]
impl<'a> Clone for ParseOptions<'a>
[src]
fn clone(&self) -> ParseOptions<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more