Trait StripCode

Source
pub trait StripCode {
    type Stripped: 'static;

    // Required method
    fn strip_code(self) -> Self::Stripped;
}
Expand description

Encapsulates stripping references to code fragments. The result can outlive the code.

Implementors of this trait are usually generic by the code lifetime: Foo<'_, ..>, with the result of stripping being Foo<'static, ..>.

Required Associated Types§

Source

type Stripped: 'static

Resulting type after code stripping.

Required Methods§

Source

fn strip_code(self) -> Self::Stripped

Strips references to code fragments in this type.

Implementors§