[][src]Trait arithmetic_parser::StripCode

pub trait StripCode {
    type Stripped: 'static;
    pub fn strip_code(self) -> Self::Stripped;
}

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, ..>.

Associated Types

type Stripped: 'static[src]

Resulting type after code stripping.

Loading content...

Required methods

pub fn strip_code(self) -> Self::Stripped[src]

Strips references to code fragments in this type.

Loading content...

Implementors

impl<'_> StripCode for Error<'_>[src]

type Stripped = SpannedError<usize>

impl<T: Clone + 'static, '_> StripCode for MaybeSpanned<'_, T>[src]

type Stripped = MaybeSpanned<'static, T>

Loading content...