Skip to main content

HtmlFormat

Trait HtmlFormat 

Source
pub trait HtmlFormat<'e> {
    type Encoded: Display;

    // Required method
    fn html_format<'f>(&'f self) -> Self::Encoded
       where 'f: 'e;
}

Required Associated Types§

Required Methods§

Source

fn html_format<'f>(&'f self) -> Self::Encoded
where 'f: 'e,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'e> HtmlFormat<'e> for f32

Source§

type Encoded = &'e f32

Source§

fn html_format<'f>(&'f self) -> <f32 as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for f64

Source§

type Encoded = &'e f64

Source§

fn html_format<'f>(&'f self) -> <f64 as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for i8

Source§

type Encoded = &'e i8

Source§

fn html_format<'f>(&'f self) -> <i8 as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for i16

Source§

type Encoded = &'e i16

Source§

fn html_format<'f>(&'f self) -> <i16 as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for i32

Source§

type Encoded = &'e i32

Source§

fn html_format<'f>(&'f self) -> <i32 as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for i64

Source§

type Encoded = &'e i64

Source§

fn html_format<'f>(&'f self) -> <i64 as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for isize

Source§

type Encoded = &'e isize

Source§

fn html_format<'f>(&'f self) -> <isize as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for str

Source§

type Encoded = String

Source§

fn html_format<'f>(&'f self) -> <str as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for u8

Source§

type Encoded = &'e u8

Source§

fn html_format<'f>(&'f self) -> <u8 as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for u16

Source§

type Encoded = &'e u16

Source§

fn html_format<'f>(&'f self) -> <u16 as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for u32

Source§

type Encoded = &'e u32

Source§

fn html_format<'f>(&'f self) -> <u32 as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for u64

Source§

type Encoded = &'e u64

Source§

fn html_format<'f>(&'f self) -> <u64 as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for usize

Source§

type Encoded = &'e usize

Source§

fn html_format<'f>(&'f self) -> <usize as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e> HtmlFormat<'e> for String

Source§

type Encoded = String

Source§

fn html_format<'f>(&'f self) -> <String as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Source§

impl<'e, T> HtmlFormat<'e> for &'e T
where T: HtmlFormat<'e> + ?Sized,

Source§

type Encoded = <T as HtmlFormat<'e>>::Encoded

Source§

fn html_format<'f>(&'f self) -> <&'e T as HtmlFormat<'e>>::Encoded
where 'f: 'e,

Implementors§

Source§

impl<'e> HtmlFormat<'e> for LinkKind

Source§

impl<'e> HtmlFormat<'e> for otter_nodejs_tests::bundles::Id

Source§

type Encoded = &'e Id

Source§

impl<'e> HtmlFormat<'e> for otter_nodejs_tests::sshkeys::Id

Source§

type Encoded = &'e Id

Source§

impl<'e> HtmlFormat<'e> for AccountName

Source§

impl<'e> HtmlFormat<'e> for AssetUrlToken

Source§

impl<'e> HtmlFormat<'e> for ClientId

Source§

impl<'e> HtmlFormat<'e> for FastSplitId

Source§

impl<'e> HtmlFormat<'e> for GoodItemName

Source§

impl<'e> HtmlFormat<'e> for Html

Source§

type Encoded = &'e str

Source§

impl<'e> HtmlFormat<'e> for HtmlLit

Source§

type Encoded = &'static str

Source§

impl<'e> HtmlFormat<'e> for HtmlStr

Source§

type Encoded = &'e str

Source§

impl<'e> HtmlFormat<'e> for InstanceName

Source§

impl<'e> HtmlFormat<'e> for OccId

Source§

impl<'e> HtmlFormat<'e> for PlayerId

Source§

impl<'e> HtmlFormat<'e> for VisiblePieceId

Source§

impl<'e, T> HtmlFormat<'e> for IsHtmlFormatted<T>
where T: Display + 'e,