Enum rust_format::PostProcess
source · [−]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
This is supported on crate feature
post_process
only.Replace _blank_!
and _comment_!
markers
ReplaceMarkersAndDocBlocks
This is supported on crate feature
post_process
only.Replace _blank_!
and _comment_!
markers and #[doc = ""]
(with ///
)
Implementations
sourceimpl 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
sourceimpl Clone for PostProcess
impl Clone for PostProcess
sourcefn clone(&self) -> PostProcess
fn clone(&self) -> PostProcess
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PostProcess
impl Debug for PostProcess
sourceimpl Default for PostProcess
impl Default for PostProcess
impl Copy for PostProcess
Auto Trait Implementations
impl RefUnwindSafe for PostProcess
impl Send for PostProcess
impl Sync for PostProcess
impl Unpin for PostProcess
impl UnwindSafe for PostProcess
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more