maven_rs::editor

Trait UpdatableElement

Source
pub trait UpdatableElement: ElementConverter {
    // Required method
    fn update_element(
        &self,
        element: Element,
        document: &mut Document,
    ) -> Result<(), XMLEditorError>;

    // Provided method
    fn replace_all_elements(
        self,
        element: Element,
        document: &mut Document,
    ) -> Result<(), XMLEditorError> { ... }
}
Expand description

Used Internally for updating a type of element.

Required Methods§

Source

fn update_element( &self, element: Element, document: &mut Document, ) -> Result<(), XMLEditorError>

Provided Methods§

Source

fn replace_all_elements( self, element: Element, document: &mut Document, ) -> Result<(), XMLEditorError>

Replaces all children of the element with the children of the current element.

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§