Trait conciliator::edit::Editable

source ·
pub trait Editable {
    type E: Edit;

    // Required method
    fn into_edit(self) -> Self::E;
}
Expand description

Proxy trait for Edit

Most types do not need to implement Edit themselves but can use a generic wrapper like TomlEditor. In almost all cases, each type will always use the same wrapper. Because of this, it makes sense to implement an implicit wrapper choice for most types. And if there is a case where a different wrapper has to be used, it can be specified explicitly, circumventing this trait.

See edit_as_toml! on how to implement this trait easily.

Required Associated Types§

source

type E: Edit

Edit type this converts to

Required Methods§

source

fn into_edit(self) -> Self::E

Perform the conversion

Implementors§

source§

impl<T: Edit> Editable for T

§

type E = T