pub struct IgnoreElement;
Expand description
Can be used as ElementState
to ignore an element with all content (attributes and sub
elements and text)
Trait Implementations§
Source§impl ElementState for IgnoreElement
impl ElementState for IgnoreElement
Source§fn parse_element_start(_tag: &str) -> Option<Self>
fn parse_element_start(_tag: &str) -> Option<Self>
Try creating state to parse an element with the passed
tag
.Source§fn parse_element_attribute(
&mut self,
_key: &str,
_value: Cow<'_, str>,
) -> Result<()>
fn parse_element_attribute( &mut self, _key: &str, _value: Cow<'_, str>, ) -> Result<()>
Parse attribute into state Read more
Source§fn parse_element_inner_text(&mut self, _text: Cow<'_, str>) -> Result<()>
fn parse_element_inner_text(&mut self, _text: Cow<'_, str>) -> Result<()>
Parse text or CDATA into state. Read more
Source§fn parse_element_inner_node<P: ElementParser>(
&mut self,
_tag: &str,
parser: P,
) -> Result<()>
fn parse_element_inner_node<P: ElementParser>( &mut self, _tag: &str, parser: P, ) -> Result<()>
Parse inner elements. Read more
Source§fn parse_error_not_found<T>() -> Result<T>
fn parse_error_not_found<T>() -> Result<T>
In case
parse_element_start
didn’t get to accept any element (either because it always
returned None
or there just wasn’t enough data), a parser can use this to generate an
error. Read moreAuto Trait Implementations§
impl Freeze for IgnoreElement
impl RefUnwindSafe for IgnoreElement
impl Send for IgnoreElement
impl Sync for IgnoreElement
impl Unpin for IgnoreElement
impl UnwindSafe for IgnoreElement
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