Struct url::ParseOptions [] [src]

pub struct ParseOptions<'a> {
    // some fields omitted
}

Full configuration for the URL parser.

Methods

impl<'a> ParseOptions<'a>
[src]

fn base_url(self, new: Option<&'a Url>) -> Self

Change the base URL

fn log_syntax_violation(self, new: Option<&'a Fn(&'static str)>) -> Self

Call the provided function or closure on non-fatal parse errors.

fn parse(self, input: &str) -> Result<UrlParseError>

Parse an URL string with the configuration so far.

Trait Implementations

impl<'a> Clone for ParseOptions<'a>
[src]

fn clone(&self) -> ParseOptions<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a> Copy for ParseOptions<'a>
[src]