pub struct CleanOutcome {
pub removed: usize,
pub new_content: String,
}Expand description
The result of a clean: how many comments were archived and the new content.
Fields§
§removed: usizeNumber of DONE comment subtrees removed.
new_content: StringThe new file content to write back (body preserved, DONE subtrees cut).
Trait Implementations§
Source§impl Clone for CleanOutcome
impl Clone for CleanOutcome
Source§fn clone(&self) -> CleanOutcome
fn clone(&self) -> CleanOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CleanOutcome
impl RefUnwindSafe for CleanOutcome
impl Send for CleanOutcome
impl Sync for CleanOutcome
impl Unpin for CleanOutcome
impl UnsafeUnpin for CleanOutcome
impl UnwindSafe for CleanOutcome
Blanket Implementations§
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