Struct url::ParseOptions [] [src]

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

Full configuration for the URL parser.

Methods

impl<'a> ParseOptions<'a>

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<Url, ParseError>

Parse an URL string with the configuration so far.

Trait Implementations

Derived Implementations

impl<'a> Clone for ParseOptions<'a>

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

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

impl<'a> Copy for ParseOptions<'a>