pub struct CliBuilder { /* private fields */ }
Expand description
Builder for Cli
.
Implementations§
Source§impl CliBuilder
impl CliBuilder
Sourcepub fn crates<VALUE: Into<Vec<PathBuf>>>(&mut self, value: VALUE) -> &mut Self
pub fn crates<VALUE: Into<Vec<PathBuf>>>(&mut self, value: VALUE) -> &mut Self
One or more crate directories to scan. If none, current dir is used.
Sourcepub fn include_tests<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn include_tests<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Include test code?
Sourcepub fn single_test_name<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn single_test_name<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Single out one test block by name.
Sourcepub fn omit_private<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn omit_private<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Omit private functions?
Sourcepub fn omit_bodies<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn omit_bodies<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Omit function bodies?
Sourcepub fn single_function_name<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn single_function_name<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Only include one function body by name.
Sourcepub fn excluded_files<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn excluded_files<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
Exclude specified files (by relative path).
Sourcepub fn exclude_main_file<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn exclude_main_file<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Exclude main file (like src/lib.rs)?
Sourcepub fn remove_doc_comments<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn remove_doc_comments<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Remove doc comments from functions
Trait Implementations§
Source§impl Clone for CliBuilder
impl Clone for CliBuilder
Source§fn clone(&self) -> CliBuilder
fn clone(&self) -> CliBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CliBuilder
impl RefUnwindSafe for CliBuilder
impl Send for CliBuilder
impl Sync for CliBuilder
impl Unpin for CliBuilder
impl UnwindSafe for CliBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more