Home
last modified time | relevance | path

Searched refs:IntoResettable (Results 1 – 6 of 6) sorted by relevance

/third_party/rust/crates/clap/src/builder/
Dresettable.rs64 pub trait IntoResettable<T> { trait
69 impl IntoResettable<char> for Option<char> {
78 impl IntoResettable<usize> for Option<usize> {
87 impl IntoResettable<ArgAction> for Option<ArgAction> {
96 impl IntoResettable<ValueHint> for Option<ValueHint> {
105 impl IntoResettable<ValueParser> for Option<ValueParser> {
114 impl IntoResettable<StyledStr> for Option<&'static str> {
123 impl IntoResettable<OsStr> for Option<&'static str> {
132 impl IntoResettable<Str> for Option<&'static str> {
141 impl<T> IntoResettable<T> for Resettable<T> {
[all …]
Darg.rs15 use crate::builder::IntoResettable;
165 pub fn short(mut self, s: impl IntoResettable<char>) -> Self { in short()
206 pub fn long(mut self, l: impl IntoResettable<Str>) -> Self { in long()
231 pub fn alias(mut self, name: impl IntoResettable<Str>) -> Self { in alias()
260 pub fn short_alias(mut self, name: impl IntoResettable<char>) -> Self { in short_alias()
348 pub fn visible_alias(mut self, name: impl IntoResettable<Str>) -> Self { in visible_alias()
376 pub fn visible_short_alias(mut self, name: impl IntoResettable<char>) -> Self { in visible_short_alias()
491 pub fn index(mut self, idx: impl IntoResettable<usize>) -> Self { in index()
731 pub fn requires(mut self, arg_id: impl IntoResettable<Id>) -> Self { in requires()
882 pub fn action(mut self, action: impl IntoResettable<ArgAction>) -> Self { in action()
[all …]
Dcommand.rs15 use crate::builder::IntoResettable;
1432 pub fn bin_name(mut self, name: impl IntoResettable<String>) -> Self { in bin_name()
1448 pub fn display_name(mut self, name: impl IntoResettable<String>) -> Self { in display_name()
1471 pub fn author(mut self, author: impl IntoResettable<Str>) -> Self { in author()
1494 pub fn about(mut self, about: impl IntoResettable<StyledStr>) -> Self { in about()
1519 pub fn long_about(mut self, long_about: impl IntoResettable<StyledStr>) -> Self { in long_about()
1541 pub fn after_help(mut self, help: impl IntoResettable<StyledStr>) -> Self { in after_help()
1563 pub fn after_long_help(mut self, help: impl IntoResettable<StyledStr>) -> Self { in after_long_help()
1583 pub fn before_help(mut self, help: impl IntoResettable<StyledStr>) -> Self { in before_help()
1603 pub fn before_long_help(mut self, help: impl IntoResettable<StyledStr>) -> Self { in before_long_help()
[all …]
Darg_group.rs2 use crate::builder::IntoResettable;
152 pub fn arg(mut self, arg_id: impl IntoResettable<Id>) -> Self { in arg()
356 pub fn requires(mut self, id: impl IntoResettable<Id>) -> Self { in requires()
443 pub fn conflicts_with(mut self, id: impl IntoResettable<Id>) -> Self { in conflicts_with()
Dpossible_value.rs1 use crate::builder::IntoResettable;
82 pub fn help(mut self, help: impl IntoResettable<StyledStr>) -> Self { in help()
119 pub fn alias(mut self, name: impl IntoResettable<Str>) -> Self { in alias()
Dmod.rs34 pub use resettable::IntoResettable;