pub struct NoopHandler;Expand description
Zero-sized handler whose every method is the trait default.
Trait Implementations§
Source§impl Clone for NoopHandler
impl Clone for NoopHandler
Source§fn clone(&self) -> NoopHandler
fn clone(&self) -> NoopHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoopHandler
Source§impl Debug for NoopHandler
impl Debug for NoopHandler
Source§impl Default for NoopHandler
impl Default for NoopHandler
Source§fn default() -> NoopHandler
fn default() -> NoopHandler
Returns the “default value” for a type. Read more
Source§impl ValidationEventHandler for NoopHandler
impl ValidationEventHandler for NoopHandler
Source§type Error = Infallible
type Error = Infallible
Caller’s hook-error type. Reported through
DriveWithError::Hook.fn before_element( &mut self, _view: ElementStartView<'_>, ) -> Result<(), Self::Error>
fn after_element( &mut self, _view: ElementStartView<'_>, _info: &SchemaInfo, ) -> Result<(), Self::Error>
fn before_attribute( &mut self, _view: AttributeView<'_>, ) -> Result<(), Self::Error>
fn after_attribute( &mut self, _view: AttributeView<'_>, _info: &SchemaInfo, ) -> Result<(), Self::Error>
fn after_end_of_attributes( &mut self, _view: EndOfAttributesView<'_>, ) -> Result<(), Self::Error>
Source§fn after_end_element(
&mut self,
_info: &EndElementInfo,
_depth: usize,
) -> Result<(), Self::Error>
fn after_end_element( &mut self, _info: &EndElementInfo, _depth: usize, ) -> Result<(), Self::Error>
depth is the depth at which the element existed (1 = root close).fn on_text(&mut self, _kind: TextKind, _text: &str) -> Result<(), Self::Error>
fn on_comment(&mut self, _text: &str) -> Result<(), Self::Error>
fn on_processing_instruction( &mut self, _target: &str, _data: &str, ) -> Result<(), Self::Error>
Auto Trait Implementations§
impl Freeze for NoopHandler
impl RefUnwindSafe for NoopHandler
impl Send for NoopHandler
impl Sync for NoopHandler
impl Unpin for NoopHandler
impl UnsafeUnpin for NoopHandler
impl UnwindSafe for NoopHandler
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