pub trait TriviaSequenceExt<'arena> {
// Required method
fn comments<'borrow>(
&'borrow self,
) -> impl Iterator<Item = &'borrow Trivia<'arena>>
where 'arena: 'borrow;
}Expand description
Iteration helpers over a trivia Sequence.
Sequence lives in mago_syntax_core, so PHP-specific helpers are
exposed as an extension trait. use crate::ast::*; imports it.
Required Methods§
fn comments<'borrow>(
&'borrow self,
) -> impl Iterator<Item = &'borrow Trivia<'arena>>where
'arena: 'borrow,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".