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§
fn update_element( &self, element: Element, document: &mut Document, ) -> Result<(), XMLEditorError>
Provided Methods§
Sourcefn replace_all_elements(
self,
element: Element,
document: &mut Document,
) -> Result<(), XMLEditorError>
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.