struct TagParser<'a> {
graphs: &'a [&'a str],
pos: usize,
}
Available on crate feature
artemis
only.Fields§
§graphs: &'a [&'a str]
§pos: usize
Implementations§
Source§impl<'a> TagParser<'a>
impl<'a> TagParser<'a>
fn peek(&self) -> Option<&'a str>
fn eat(&mut self)
fn next(&mut self) -> Option<&'a str>
fn is_indent(&self, indent: &str) -> bool
fn eat_all_equal(&mut self)
fn parse(&mut self) -> Result<(TagNode, usize)>
fn erase_whitespace(&mut self)
fn parse_attr_name(&mut self) -> Result<String>
fn parse_attr_value(&mut self) -> Result<String>
fn parse_tag(&mut self) -> Result<String>
Auto Trait Implementations§
impl<'a> Freeze for TagParser<'a>
impl<'a> RefUnwindSafe for TagParser<'a>
impl<'a> Send for TagParser<'a>
impl<'a> Sync for TagParser<'a>
impl<'a> Unpin for TagParser<'a>
impl<'a> UnwindSafe for TagParser<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more