Skip to main content

## IntoUrlWithBase

# Trait IntoUrlWithBase

Source

    pub trait IntoUrlWithBase {
        // Required method
        fn into_url_with_base<U: IntoUrl>(self, base: Option<U>) -> CargoResult<Url>;
    }

Expand description

A type that can be interpreted as a relative Url and converted to a Url.

## Required Methods§

Source

#### fn into_url_with_base<U: IntoUrl>(self, base: Option<U>) -> CargoResult<Url>

Performs the conversion

## Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

## Implementations on Foreign Types§

Source§

### impl<'a> IntoUrlWithBase for &'a str

Source§

#### fn into_url_with_base<U: IntoUrl>(self, base: Option<U>) -> CargoResult<Url>

## Implementors§