Struct elastic_requests::Url [] [src]

pub struct Url<'a>(_);

A wrapper around an owned or borrowed url.

Methods from Deref<Target = Cow<'a, str>>

Extracts the owned data.

Clones the data if it is not already owned.

Examples

use std::borrow::Cow;

let cow: Cow<[_]> = Cow::Owned(vec![1, 2, 3]);

let hello = cow.into_owned();

assert_eq!(vec![1, 2, 3], hello);

Trait Implementations

impl<'a> Debug for Url<'a>
[src]

Formats the value using the given formatter.

impl<'a> PartialEq for Url<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> From<&'a str> for Url<'a>
[src]

Performs the conversion.

impl<'a> From<String> for Url<'a>
[src]

Performs the conversion.

impl<'a> Deref for Url<'a>
[src]

The resulting type after dereferencing

The method called to dereference a value