pub trait PomValue: Sized {
// Required methods
fn from_str_for_editor(value: &str) -> Result<Self, InvalidValueError>;
fn to_string_for_editor(&self) -> String;
// Provided methods
fn from_string_for_editor(value: String) -> Result<Self, InvalidValueError> { ... }
fn from_element(
element: Element,
document: &Document,
) -> Result<Self, XMLEditorError>
where Self: Sized { ... }
}
Required Methods§
fn from_str_for_editor(value: &str) -> Result<Self, InvalidValueError>
fn to_string_for_editor(&self) -> String
Provided Methods§
fn from_string_for_editor(value: String) -> Result<Self, InvalidValueError>
fn from_element(
element: Element,
document: &Document,
) -> Result<Self, XMLEditorError>where
Self: Sized,
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.