pub trait XDirection<'l>where
Self: Sized,{
// Required methods
fn attr<T: 'static>(&self, ll_line: &'l LLLine) -> Vec<(&'l T, ToIdx)>;
fn attr_eq<T: 'static + PartialEq>(
&self,
equals: &T,
ll_line: &'l LLLine,
) -> Vec<((), ToIdx)>;
fn token_attr_one_of<T: 'static + PartialEq>(
&self,
set: &[T],
ll_line: &'l LLLine,
) -> Vec<(&'l T, ToIdx)>;
fn text_token(&self, ll_line: &'l LLLine) -> Option<(&'l str, ToIdx)>;
fn after(&self, idx: usize, ll_line: &'l LLLine) -> Option<Self>
where Self: Sized;
}
Required Methods§
fn attr<T: 'static>(&self, ll_line: &'l LLLine) -> Vec<(&'l T, ToIdx)>
fn attr_eq<T: 'static + PartialEq>( &self, equals: &T, ll_line: &'l LLLine, ) -> Vec<((), ToIdx)>
fn token_attr_one_of<T: 'static + PartialEq>( &self, set: &[T], ll_line: &'l LLLine, ) -> Vec<(&'l T, ToIdx)>
Sourcefn text_token(&self, ll_line: &'l LLLine) -> Option<(&'l str, ToIdx)>
fn text_token(&self, ll_line: &'l LLLine) -> Option<(&'l str, ToIdx)>
If the next token is Text, return the inner string slice
fn after(&self, idx: usize, ll_line: &'l LLLine) -> Option<Self>where
Self: Sized,
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.