pub enum PostProcess {
None,
ReplaceMarkers,
ReplaceMarkersAndDocBlocks,
}
Expand description
Post format processing options - optionally replace comment/blank markers and doc blocks
Variants§
None
No post processing after formatting (default)
ReplaceMarkers
Available on crate feature
post_process
only.Replace _blank_!
and _comment_!
markers
ReplaceMarkersAndDocBlocks
Available on crate feature
post_process
only.Replace _blank_!
and _comment_!
markers and #[doc = ""]
(with ///
)
Implementations§
Source§impl PostProcess
impl PostProcess
Sourcepub fn replace_markers(self) -> bool
pub fn replace_markers(self) -> bool
Returns true if blank and comment markers should be replaced in the formatted source or false if they should not be
Sourcepub fn replace_doc_blocks(self) -> bool
pub fn replace_doc_blocks(self) -> bool
Returns true if doc blocks should be replaced in the formatted source or false if they should not be
Trait Implementations§
Source§impl Clone for PostProcess
impl Clone for PostProcess
Source§fn clone(&self) -> PostProcess
fn clone(&self) -> PostProcess
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PostProcess
impl Debug for PostProcess
Source§impl Default for PostProcess
impl Default for PostProcess
impl Copy for PostProcess
Auto Trait Implementations§
impl Freeze for PostProcess
impl RefUnwindSafe for PostProcess
impl Send for PostProcess
impl Sync for PostProcess
impl Unpin for PostProcess
impl UnwindSafe for PostProcess
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