Skip to main content

IntoPart

Trait IntoPart 

Source
pub trait IntoPart<'a> {
    // Required method
    fn into_part(self) -> Part<'a>;
}
Expand description

Conversion into a borrowed query string Part.

Implemented for &str and for &T of any Display type, so string literals, &String, &i32, &bool etc. can all be passed to QueryString’s methods directly.

Required Methods§

Source

fn into_part(self) -> Part<'a>

Performs the conversion.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, T: Display> IntoPart<'a> for &'a T

Source§

fn into_part(self) -> Part<'a>

Source§

impl<'a> IntoPart<'a> for &'a str

Source§

fn into_part(self) -> Part<'a>

Implementors§