Skip to main content

MakeStatic

Trait MakeStatic 

Source
pub trait MakeStatic {
    type AsStatic;

    // Required method
    fn into_static(self) -> Self::AsStatic;
}
Expand description

Make a markdown event static; i.e. no longer pinned to the lifetime of the str used to produce it

Required Associated Types§

Source

type AsStatic

This type should simply be the original type with a static lifetime, but has to be represented in this way to work around language limitations

Required Methods§

Source

fn into_static(self) -> Self::AsStatic

transform this event

Implementations on Foreign Types§

Source§

impl MakeStatic for Event<'_>

Source§

type AsStatic = Event<'static>

Source§

fn into_static(self) -> Self::AsStatic

Source§

impl<'a> MakeStatic for Tag<'a>

Source§

type AsStatic = Tag<'static>

Source§

fn into_static(self) -> Self::AsStatic

Implementors§

Source§

impl MakeStatic for CodeBlockKind<'_>

Source§

impl MakeStatic for CowStr<'_>

Source§

type AsStatic = CowStr<'static>

Source§

impl MakeStatic for extended_pulldown::Event<'_>

Source§

type AsStatic = Event<'static>

Source§

impl MakeStatic for extended_pulldown::Tag<'_>

Source§

type AsStatic = Tag<'static>