pub struct ParseElementOptional<E: ElementState> { /* private fields */ }
Expand description
InnerState
to parse a single optional element
Trait Implementations§
Source§impl<E: ElementState> Default for ParseElementOptional<E>
impl<E: ElementState> Default for ParseElementOptional<E>
Source§impl<E: ElementState> InnerState for ParseElementOptional<E>
impl<E: ElementState> InnerState for ParseElementOptional<E>
Source§type Output = Option<<E as ElementState>::Output>
type Output = Option<<E as ElementState>::Output>
Once fully parsed this is the resulting output type.
Source§fn parse_inner_node<P: ElementParser>(
&mut self,
tag: &str,
parser: P,
) -> Result<InnerParseResult<P>>
fn parse_inner_node<P: ElementParser>( &mut self, tag: &str, parser: P, ) -> Result<InnerParseResult<P>>
Try parsing an element with the given tag Read more
Source§fn parse_inner_finish(self) -> Result<Self::Output>
fn parse_inner_finish(self) -> Result<Self::Output>
Finish parsing.
Source§fn parse_inner_text<'t>(
&mut self,
text: Cow<'t, str>,
) -> Result<InnerParseResult<Cow<'t, str>>>
fn parse_inner_text<'t>( &mut self, text: Cow<'t, str>, ) -> Result<InnerParseResult<Cow<'t, str>>>
Try parsing inner text Read more
Auto Trait Implementations§
impl<E> Freeze for ParseElementOptional<E>
impl<E> RefUnwindSafe for ParseElementOptional<E>
impl<E> Send for ParseElementOptional<E>
impl<E> Sync for ParseElementOptional<E>
impl<E> Unpin for ParseElementOptional<E>
impl<E> UnwindSafe for ParseElementOptional<E>
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