This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(prelude_import)] | |
#[prelude_import] | |
use std::prelude::v1::*; | |
#[macro_use] | |
extern crate std; | |
use structopt::StructOpt; | |
pub struct A { | |
#[structopt(flatten)] | |
pub b: B, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// This trait is just a convenience on top of FromArgMatches + IntoApp | |
/// | |
/// All the methods are provided. | |
trait Clap: FromArgMatches + IntoApp + Sized { | |
/// Parse from `std::env::args()`, exit on error | |
fn parse() -> Self { | |
let matches = <Self as IntoApp>::into_app().get_matches(); | |
<Self as FromArgMatches>::from_argmatches(matches) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Cargo Build Timings — clap 3.0.0-beta.1</title> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
html { | |
font-family: sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Cargo Build Timings — clap 3.0.0-beta.1</title> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
html { | |
font-family: sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Cargo Build Timings — clap 3.0.0-beta.1</title> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
html { | |
font-family: sans-serif; | |
} |