maven_rs::editor

Trait PomValue

Source
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§

Provided Methods§

Source

fn from_string_for_editor(value: String) -> Result<Self, InvalidValueError>

Source

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.

Implementations on Foreign Types§

Source§

impl PomValue for bool

Source§

impl PomValue for f32

Source§

impl PomValue for f64

Source§

impl PomValue for i8

Source§

impl PomValue for i16

Source§

impl PomValue for i32

Source§

impl PomValue for i64

Source§

impl PomValue for i128

Source§

impl PomValue for isize

Source§

impl PomValue for u8

Source§

impl PomValue for u16

Source§

impl PomValue for u32

Source§

impl PomValue for u64

Source§

impl PomValue for u128

Source§

impl PomValue for usize

Source§

impl PomValue for String

Source§

impl PomValue for PathBuf

Implementors§