pub trait Decoration: 'static {
type Decorated<T>: AsUndecorated<T> + Debug + PartialEq + Eq
where T: AsUndecorated<T> + Debug + PartialEq + Eq;
// Required method
fn decorate_parser<PIn, I, O, E>(
parser: PIn,
) -> impl Parser<I, Self::Decorated<O>, E>
where I: Stream + Location,
O: AsUndecorated<O> + Debug + PartialEq + Eq,
PIn: Parser<I, O, E>;
}Expand description
Decoration associates the extra information attached to Transaction or any other crate::syntax data. See super::plain or super::tracked for implementations.
Required Associated Types§
type Decorated<T>: AsUndecorated<T> + Debug + PartialEq + Eq where T: AsUndecorated<T> + Debug + PartialEq + Eq
Required Methods§
fn decorate_parser<PIn, I, O, E>( parser: PIn, ) -> impl Parser<I, Self::Decorated<O>, E>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.