MutableTreeEdit

Trait MutableTreeEdit 

Source
pub trait MutableTreeEdit {
    // Required method
    fn edit_file<P: Marshallable>(
        &self,
        path: &Path,
        allow_generated: bool,
        allow_reformatting: bool,
    ) -> Result<TreeEditor<'_, P>, EditorError>;
}
Expand description

Allow calling .edit_file(“debian/control”) on a tree

Required Methods§

Source

fn edit_file<P: Marshallable>( &self, path: &Path, allow_generated: bool, allow_reformatting: bool, ) -> Result<TreeEditor<'_, P>, EditorError>

Edit a file in a tree

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§