pub trait ElementsParsers: Parsers {
// Required methods
fn seq<'a, 'b, I>(tag: &'b [I]) -> Self::P<'a, I, &'a [I]>
where I: PartialEq + Debug + 'a,
'b: 'a;
fn tag<'a, 'b>(tag: &'b str) -> Self::P<'a, char, &'a str>
where 'b: 'a;
fn tag_no_case<'a, 'b>(tag: &'b str) -> Self::P<'a, char, &'a str>
where 'b: 'a;
fn regex<'a>(pattern: &str) -> Self::P<'a, char, String>;
}
Required Methods§
fn seq<'a, 'b, I>(tag: &'b [I]) -> Self::P<'a, I, &'a [I]>
fn tag<'a, 'b>(tag: &'b str) -> Self::P<'a, char, &'a str>where
'b: 'a,
fn tag_no_case<'a, 'b>(tag: &'b str) -> Self::P<'a, char, &'a str>where
'b: 'a,
fn regex<'a>(pattern: &str) -> Self::P<'a, char, String>
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.