pub struct FsEditor<P: Marshallable> { /* private fields */ }Expand description
An editor for a file
Implementations§
Trait Implementations§
Source§impl<M: Marshallable> DerefMut for FsEditor<M>
impl<M: Marshallable> DerefMut for FsEditor<M>
Source§impl<P: Marshallable> Editor<P> for FsEditor<P>
impl<P: Marshallable> Editor<P> for FsEditor<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
Source§fn is_generated(&self) -> bool
fn is_generated(&self) -> bool
Check if the file is generated
Source§fn has_changed(&self) -> bool
fn has_changed(&self) -> bool
Whether the file has changed
Auto Trait Implementations§
impl<P> Freeze for FsEditor<P>where
P: Freeze,
impl<P> RefUnwindSafe for FsEditor<P>where
P: RefUnwindSafe,
impl<P> Send for FsEditor<P>where
P: Send,
impl<P> Sync for FsEditor<P>where
P: Sync,
impl<P> Unpin for FsEditor<P>where
P: Unpin,
impl<P> UnwindSafe for FsEditor<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<E> AbstractControlEditor for E
impl<E> AbstractControlEditor for E
Source§fn source<'a>(&'a mut self) -> Option<Box<dyn AbstractSource<'a> + 'a>>
fn source<'a>(&'a mut self) -> Option<Box<dyn AbstractSource<'a> + 'a>>
Get the source package.
Source§fn wrap_and_sort(&mut self)
fn wrap_and_sort(&mut self)
Wrap and sort the control file.
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more