Trait NodeDataExt

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

Extensions for NodeData

Required Methods§

Source

fn clone(&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.

Implementations on Foreign Types§

Source§

impl NodeDataExt for NodeData

Source§

fn clone(&self) -> Result<Self>

Source§

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

Implementors§