Struct cargo_doc2readme::Args
source · [−]pub(crate) struct Args {
pub(crate) manifest_path: Option<PathBuf>,
pub(crate) out: PathBuf,
pub(crate) template: PathBuf,
}
Fields
manifest_path: Option<PathBuf>
Path to Cargo.toml.
out: PathBuf
Output File.
template: PathBuf
Template File. This is processed by Tera. Look at the source code for cargo-doc2readme for an example.
Trait Implementations
sourceimpl Clap for Args
impl Clap for Args
sourcefn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourceimpl FromArgMatches for Args
impl FromArgMatches for Args
sourcefn from_arg_matches(matches: &ArgMatches) -> Self
fn from_arg_matches(matches: &ArgMatches) -> Self
It’s common to have an “application context” struct (sometimes called config) that represents all the normalized values after being processed by the CLI. Read more
Auto Trait Implementations
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more