[−][src]Struct xml_data::parser::ParseElementOptional
InnerState
to parse a single optional element
Trait Implementations
impl<E: ElementState> Default for ParseElementOptional<E>
[src]
impl<E: ElementState> InnerState for ParseElementOptional<E>
[src]
type Output = Option<E::Output>
Once fully parsed this is the resulting output type.
fn parse_inner_node<P: ElementParser>(
&mut self,
tag: &str,
parser: P
) -> Result<InnerParseResult<P>>
[src]
&mut self,
tag: &str,
parser: P
) -> Result<InnerParseResult<P>>
fn parse_inner_finish(self) -> Result<Self::Output>
[src]
fn parse_inner_text<'t>(
&mut self,
text: Cow<'t, str>
) -> Result<InnerParseResult<Cow<'t, str>>>
[src]
&mut self,
text: Cow<'t, str>
) -> Result<InnerParseResult<Cow<'t, str>>>
Auto Trait Implementations
impl<E> RefUnwindSafe for ParseElementOptional<E> where
<E as ElementState>::Output: RefUnwindSafe,
<E as ElementState>::Output: RefUnwindSafe,
impl<E> Send for ParseElementOptional<E> where
<E as ElementState>::Output: Send,
<E as ElementState>::Output: Send,
impl<E> Sync for ParseElementOptional<E> where
<E as ElementState>::Output: Sync,
<E as ElementState>::Output: Sync,
impl<E> Unpin for ParseElementOptional<E> where
<E as ElementState>::Output: Unpin,
<E as ElementState>::Output: Unpin,
impl<E> UnwindSafe for ParseElementOptional<E> where
<E as ElementState>::Output: UnwindSafe,
<E as ElementState>::Output: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,