Skip to main content

IntoFragment

Trait IntoFragment 

Source
pub trait IntoFragment<'a> {
    // Required method
    fn into_fragment(self) -> Cow<'a, str>;
}
Expand description

A trait for converting a value to some text Fragment.

Required Methods§

Source

fn into_fragment(self) -> Cow<'a, str>

Converts the value to some text Fragment.

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> IntoFragment<'a> for &'a Cow<'_, str>

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &'a String

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

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

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &bool

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &char

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &f32

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &f64

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &i8

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &i16

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &i32

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &i64

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &i128

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &isize

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &u8

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &u16

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &u32

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &u64

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &u128

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for &usize

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for Cow<'a, str>

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for String

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for bool

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for char

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for f32

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for f64

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for i8

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for i16

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for i32

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for i64

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for i128

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for isize

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for u8

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for u16

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for u32

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for u64

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for u128

Source§

fn into_fragment(self) -> Cow<'a, str>

Source§

impl<'a> IntoFragment<'a> for usize

Source§

fn into_fragment(self) -> Cow<'a, str>

Implementors§