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§
Required Methods§
Sourcefn strip_code(self) -> Self::Stripped
fn strip_code(self) -> Self::Stripped
Strips references to code fragments in this type.