Struct debian_analyzer::editor::TreeEditor
source · pub struct TreeEditor<'a, P: Marshallable> { /* private fields */ }Implementations§
source§impl<'a, P: Marshallable> TreeEditor<'a, P>
impl<'a, P: Marshallable> TreeEditor<'a, P>
pub fn from_env( tree: &'a dyn MutableTree, path: &Path, allow_generated: bool, allow_reformatting: Option<bool>, ) -> Result<Self, EditorError>
pub fn new( tree: &'a dyn MutableTree, path: &Path, allow_generated: bool, allow_reformatting: bool, ) -> Result<Self, EditorError>
Trait Implementations§
source§impl<'a, P: Marshallable> DerefMut for TreeEditor<'a, P>
impl<'a, P: Marshallable> DerefMut for TreeEditor<'a, P>
source§impl<'a, P: Marshallable> Editor<P> for TreeEditor<'a, P>
impl<'a, P: Marshallable> Editor<P> for TreeEditor<'a, P>
source§fn orig_content(&self) -> Option<&[u8]>
fn orig_content(&self) -> Option<&[u8]>
The original content, if any - without reformatting
source§fn rewritten_content(&self) -> Option<&[u8]>
fn rewritten_content(&self) -> Option<&[u8]>
The original content, but rewritten with our parser/serializer
fn is_generated(&self) -> bool
source§fn has_changed(&self) -> bool
fn has_changed(&self) -> bool
Whether the file has changed
Auto Trait Implementations§
impl<'a, P> Freeze for TreeEditor<'a, P>where
P: Freeze,
impl<'a, P> !RefUnwindSafe for TreeEditor<'a, P>
impl<'a, P> !Send for TreeEditor<'a, P>
impl<'a, P> !Sync for TreeEditor<'a, P>
impl<'a, P> Unpin for TreeEditor<'a, P>where
P: Unpin,
impl<'a, P> !UnwindSafe for TreeEditor<'a, P>
Blanket Implementations§
source§impl<E> AbstractControlEditor for E
impl<E> AbstractControlEditor for E
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more