pub trait PushImpl<Extra: Copy>: Sized {
type Item: AstImpl<Extra>;
// Required methods
fn empty(with: Extra) -> Self;
fn push(&mut self, value: Self::Item, with: Extra);
// Provided method
fn peggen_ast<'lifetime>(
input: &'lifetime str,
stack: &'lifetime [Tag],
with: Extra,
) -> (&'lifetime [Tag], Self) { ... }
}
Required Associated Types§
Required Methods§
Provided Methods§
fn peggen_ast<'lifetime>( input: &'lifetime str, stack: &'lifetime [Tag], with: Extra, ) -> (&'lifetime [Tag], Self)
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.