NodeDataExt

Trait NodeDataExt 

Source
pub trait NodeDataExt {
    // Required methods
    fn clone2(&self) -> Result<NodeData>;
    fn set_processing_instruction_content<S: AsRef<str> + ?Sized>(
        &mut self,
        content: &S,
    ) -> Result<()>;
}
Available on crate feature xml5ever only.
Expand description

Extensions for NodeData

Required Methods§

Source

fn clone2(&self) -> Result<NodeData>

clones the node data.

Source

fn set_processing_instruction_content<S: AsRef<str> + ?Sized>( &mut self, content: &S, ) -> Result<()>

Sets the content of a processing instruction.

Returns Ok(()) if the node is not a processing instruction.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§