Struct ptagslib::bin::Opt [−][src]
pub struct Opt {Show fields
pub thread: usize,
pub output: PathBuf,
pub dir: PathBuf,
pub stat: bool,
pub list: Option<String>,
pub bin_ctags: PathBuf,
pub bin_git: PathBuf,
pub opt_ctags: Vec<String>,
pub opt_git: Vec<String>,
pub opt_git_lfs: Vec<String>,
pub verbose: bool,
pub exclude_lfs: bool,
pub include_untracked: bool,
pub include_ignored: bool,
pub include_submodule: bool,
pub validate_utf8: bool,
pub unsorted: bool,
pub exclude: Vec<String>,
pub completion: Option<String>,
pub config: bool,
}Fields
thread: usizeNumber of threads
output: PathBufOutput filename ( filename ‘-’ means output to stdout )
dir: PathBufSearch directory
stat: boolShow statistics
list: Option<String>Filename of input file list
Path to ctags binary
bin_git: PathBufPath to git binary
Options passed to ctags
opt_git: Vec<String>Options passed to git
opt_git_lfs: Vec<String>Options passed to git-lfs
verbose: boolVerbose mode
exclude_lfs: boolExclude git-lfs tracked files
include_untracked: boolInclude untracked files
include_ignored: boolInclude ignored files
include_submodule: boolInclude submodule files
validate_utf8: boolValidate UTF8 sequence of tag file
unsorted: boolDisable tags sort
exclude: Vec<String>Glob pattern of exclude file ( ex. –exclude ‘*.rs’ )
completion: Option<String>Generate shell completion file
config: boolGenerate configuration sample file
Trait Implementations
impl<'de> Deserialize<'de> for Opt where
Opt: Default, [src]
impl<'de> Deserialize<'de> for Opt where
Opt: Default, [src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl StructOpt for Opt[src]
impl StructOpt for Opt[src]fn from_clap(matches: &ArgMatches<'_>) -> Self[src]
fn from_clap(matches: &ArgMatches<'_>) -> Self[src]Builds the struct from clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic. Read more
fn from_args() -> Self[src]
fn from_args() -> Self[src]Builds the struct from the command line arguments (std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more
fn from_args_safe() -> Result<Self, Error>[src]
fn from_args_safe() -> Result<Self, Error>[src]Builds the struct from the command line arguments (std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]Gets the struct from any iterator such as a Vec of your making.
Print the error message and quit the program in case of failure. Read more
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]Gets the struct from any iterator such as a Vec of your making. Read more
impl StructOptInternal for Opt[src]
impl StructOptInternal for Opt[src]fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>[src]
fn is_subcommand() -> bool[src]
fn from_subcommand(_sub: (&'b str, Option<&'b ArgMatches<'a>>)) -> Option<Self>[src]
impl StructOptToml for Opt[src]
impl StructOptToml for Opt[src]fn merge<'a>(from_toml: Self, from_args: Self, args: &ArgMatches<'_>) -> Self where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>, [src]
fn merge<'a>(from_toml: Self, from_args: Self, args: &ArgMatches<'_>) -> Self where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>, [src]Merge the struct from TOML and the struct from args
fn from_clap_with_toml<'a>(
toml_str: &'a str,
args: &ArgMatches<'_>
) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>, [src]
fn from_clap_with_toml<'a>(
toml_str: &'a str,
args: &ArgMatches<'_>
) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>, [src]Creates the struct from clap::ArgMatches with initial values from TOML.
fn from_args_with_toml<'a>(toml_str: &'a str) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>, [src]
fn from_args_with_toml<'a>(toml_str: &'a str) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>, [src]Creates the struct from command line arguments with initial values from TOML.
fn from_iter_with_toml<'a, I>(toml_str: &'a str, iter: I) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]
fn from_iter_with_toml<'a, I>(toml_str: &'a str, iter: I) -> Result<Self, Error> where
Self: StructOpt + Deserialize<'a>,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]Creates the struct from iterator with initial values from TOML.
Auto Trait Implementations
impl RefUnwindSafe for Opt
impl Send for Opt
impl Sync for Opt
impl Unpin for Opt
impl UnwindSafe for Opt
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,