Home
last modified time | relevance | path

Searched defs:StyledStr (Results 1 – 25 of 27) sorted by relevance

12

/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.2/src/error/
H A Dformat.rs19 fn format_error(error: &crate::error::Error<Self>) -> StyledStr; in format_error()
32 fn format_error(error: &crate::error::Error<Self>) -> StyledStr { in format_error()
59 fn format_error(error: &crate::error::Error<Self>) -> StyledStr { in format_error()
129 fn start_error(styled: &mut StyledStr, styles: &Styles) { in start_error()
139 styled: &mut StyledStr, in write_dynamic_context()
428 styled: &mut StyledStr, in write_values_list()
455 usage: Option<&StyledStr>, in format_error_message()
456 ) -> StyledStr { in format_error_message()
478 fn put_usage(styled: &mut StyledStr, usage: &StyledStr) { in put_usage()
493 fn try_help(styled: &mut StyledStr, styles: &Styles, help: Option<&str>) { in try_help()
[all …]
H A Dmod.rs288 pub fn render(&self) -> StyledStr { in render()
370 usage: Option<StyledStr>, in argument_conflict()
398 usage: Option<StyledStr>, in subcommand_conflict()
478 usage: Option<StyledStr>, in invalid_subcommand()
525 usage: Option<StyledStr>, in unrecognized_subcommand()
547 usage: Option<StyledStr>, in missing_required_argument()
570 usage: Option<StyledStr>, in missing_subcommand()
610 usage: Option<StyledStr>, in too_many_values()
634 usage: Option<StyledStr>, in too_few_values()
683 usage: Option<StyledStr>, in wrong_number_of_values()
[all …]
H A Dcontext.rs87 StyledStr(crate::builder::StyledStr), enumerator
/aosp_15_r20/external/rust/android-crates-io/crates/clap_builder/src/error/
Dformat.rs19 fn format_error(error: &crate::error::Error<Self>) -> StyledStr; in format_error()
32 fn format_error(error: &crate::error::Error<Self>) -> StyledStr { in format_error()
59 fn format_error(error: &crate::error::Error<Self>) -> StyledStr { in format_error()
129 fn start_error(styled: &mut StyledStr, styles: &Styles) { in start_error()
139 styled: &mut StyledStr, in write_dynamic_context()
428 styled: &mut StyledStr, in write_values_list()
455 usage: Option<&StyledStr>, in format_error_message()
456 ) -> StyledStr { in format_error_message()
478 fn put_usage(styled: &mut StyledStr, usage: &StyledStr) { in put_usage()
493 fn try_help(styled: &mut StyledStr, styles: &Styles, help: Option<&str>) { in try_help()
[all …]
Dmod.rs288 pub fn render(&self) -> StyledStr { in render()
370 usage: Option<StyledStr>, in argument_conflict()
398 usage: Option<StyledStr>, in subcommand_conflict()
478 usage: Option<StyledStr>, in invalid_subcommand()
525 usage: Option<StyledStr>, in unrecognized_subcommand()
547 usage: Option<StyledStr>, in missing_required_argument()
570 usage: Option<StyledStr>, in missing_subcommand()
610 usage: Option<StyledStr>, in too_many_values()
634 usage: Option<StyledStr>, in too_few_values()
683 usage: Option<StyledStr>, in wrong_number_of_values()
[all …]
Dcontext.rs87 StyledStr(crate::builder::StyledStr), enumerator
/aosp_15_r20/external/rust/android-crates-io/crates/clap_builder/src/builder/
Dstyled_str.rs24 pub struct StyledStr(String); struct
26 impl StyledStr { implementation
152 impl Default for &'_ StyledStr { implementation
159 impl From<std::string::String> for StyledStr { implementation
165 impl From<&'_ std::string::String> for StyledStr { implementation
173 impl From<&'static str> for StyledStr { implementation
181 impl From<&'_ &'static str> for StyledStr { implementation
187 impl std::fmt::Write for StyledStr { implementation
202 impl std::fmt::Display for StyledStr { implementation
Dcommand.rs904 pub fn render_help(&mut self) -> StyledStr { in render_help()
931 pub fn render_long_help(&mut self) -> StyledStr { in render_long_help()
1031 pub fn render_usage(&mut self) -> StyledStr { in render_usage()
1035 pub(crate) fn render_usage_(&mut self) -> Option<StyledStr> { in render_usage_()
3475 pub fn get_about(&self) -> Option<&StyledStr> { in get_about()
3483 pub fn get_long_about(&self) -> Option<&StyledStr> { in get_long_about()
3609 pub fn get_before_help(&self) -> Option<&StyledStr> { in get_before_help()
3615 pub fn get_before_long_help(&self) -> Option<&StyledStr> { in get_before_long_help()
3621 pub fn get_after_help(&self) -> Option<&StyledStr> { in get_after_help()
3627 pub fn get_after_long_help(&self) -> Option<&StyledStr> { in get_after_long_help()
[all …]
Dresettable.rs116 fn into_resettable(self) -> Resettable<StyledStr> { in into_resettable()
191 fn into_resettable(self) -> Resettable<StyledStr> { in into_resettable()
Darg.rs3837 pub fn get_help(&self) -> Option<&StyledStr> { in get_help()
3853 pub fn get_long_help(&self) -> Option<&StyledStr> { in get_long_help()
4281 pub(crate) fn stylized(&self, styles: &Styles, required: Option<bool>) -> StyledStr { in stylized()
4301 pub(crate) fn stylize_arg_suffix(&self, styles: &Styles, required: Option<bool>) -> StyledStr { in stylize_arg_suffix()
Dpossible_value.rs161 pub fn get_help(&self) -> Option<&StyledStr> { in get_help()
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.2/src/builder/
H A Dstyled_str.rs24 pub struct StyledStr(String); struct
26 impl StyledStr { implementation
152 impl Default for &'_ StyledStr { implementation
159 impl From<std::string::String> for StyledStr { implementation
165 impl From<&'_ std::string::String> for StyledStr { implementation
173 impl From<&'static str> for StyledStr { implementation
181 impl From<&'_ &'static str> for StyledStr { implementation
187 impl std::fmt::Write for StyledStr { implementation
202 impl std::fmt::Display for StyledStr { implementation
H A Dcommand.rs904 pub fn render_help(&mut self) -> StyledStr { in render_help()
931 pub fn render_long_help(&mut self) -> StyledStr { in render_long_help()
1031 pub fn render_usage(&mut self) -> StyledStr { in render_usage()
1035 pub(crate) fn render_usage_(&mut self) -> Option<StyledStr> { in render_usage_()
3475 pub fn get_about(&self) -> Option<&StyledStr> { in get_about()
3483 pub fn get_long_about(&self) -> Option<&StyledStr> { in get_long_about()
3609 pub fn get_before_help(&self) -> Option<&StyledStr> { in get_before_help()
3615 pub fn get_before_long_help(&self) -> Option<&StyledStr> { in get_before_long_help()
3621 pub fn get_after_help(&self) -> Option<&StyledStr> { in get_after_help()
3627 pub fn get_after_long_help(&self) -> Option<&StyledStr> { in get_after_long_help()
[all …]
H A Dresettable.rs116 fn into_resettable(self) -> Resettable<StyledStr> { in into_resettable()
191 fn into_resettable(self) -> Resettable<StyledStr> { in into_resettable()
H A Darg.rs3837 pub fn get_help(&self) -> Option<&StyledStr> { in get_help()
3853 pub fn get_long_help(&self) -> Option<&StyledStr> { in get_long_help()
4281 pub(crate) fn stylized(&self, styles: &Styles, required: Option<bool>) -> StyledStr { in stylized()
4301 pub(crate) fn stylize_arg_suffix(&self, styles: &Styles, required: Option<bool>) -> StyledStr { in stylize_arg_suffix()
H A Dpossible_value.rs161 pub fn get_help(&self) -> Option<&StyledStr> { in get_help()
/aosp_15_r20/external/rust/android-crates-io/crates/clap_builder/src/output/
Dusage.rs41 pub(crate) fn create_usage_with_title(&self, used: &[Id]) -> Option<StyledStr> { in create_usage_with_title()
61 pub(crate) fn create_usage_no_title(&self, used: &[Id]) -> Option<StyledStr> { in create_usage_no_title()
75 fn write_usage_no_title(&self, styled: &mut StyledStr, used: &[Id]) -> bool { in write_usage_no_title()
102 fn write_help_usage(&self, styled: &mut StyledStr) { in write_help_usage()
135 fn write_smart_usage(&self, styled: &mut StyledStr, used: &[Id]) { in write_smart_usage()
156 fn write_arg_usage(&self, styled: &mut StyledStr, used: &[Id], incl_reqs: bool) { in write_arg_usage()
185 fn write_subcommand_usage(&self, styled: &mut StyledStr) { in write_subcommand_usage()
289 pub(crate) fn write_args(&self, styled: &mut StyledStr, incls: &[Id], force_optional: bool) { in write_args()
418 ) -> Vec<StyledStr> { in get_required_usage_from()
Dhelp_template.rs33 writer: &'writer mut StyledStr, in new()
94 writer: &'writer mut StyledStr, in new()
635 about: &StyledStr, in help()
1019 sc_str: StyledStr, in write_subcommand()
1080 fn subcmd(&mut self, sc_str: StyledStr, next_line_help: bool, longest: usize) { in subcmd()
Dhelp.rs9 pub(crate) fn write_help(writer: &mut StyledStr, cmd: &Command, usage: &Usage<'_>, use_long: bool) { in write_help()
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.2/src/output/
H A Dusage.rs41 pub(crate) fn create_usage_with_title(&self, used: &[Id]) -> Option<StyledStr> { in create_usage_with_title()
61 pub(crate) fn create_usage_no_title(&self, used: &[Id]) -> Option<StyledStr> { in create_usage_no_title()
75 fn write_usage_no_title(&self, styled: &mut StyledStr, used: &[Id]) -> bool { in write_usage_no_title()
102 fn write_help_usage(&self, styled: &mut StyledStr) { in write_help_usage()
135 fn write_smart_usage(&self, styled: &mut StyledStr, used: &[Id]) { in write_smart_usage()
156 fn write_arg_usage(&self, styled: &mut StyledStr, used: &[Id], incl_reqs: bool) { in write_arg_usage()
185 fn write_subcommand_usage(&self, styled: &mut StyledStr) { in write_subcommand_usage()
289 pub(crate) fn write_args(&self, styled: &mut StyledStr, incls: &[Id], force_optional: bool) { in write_args()
418 ) -> Vec<StyledStr> { in get_required_usage_from()
H A Dhelp_template.rs33 writer: &'writer mut StyledStr, in new()
94 writer: &'writer mut StyledStr, in new()
635 about: &StyledStr, in help()
1019 sc_str: StyledStr, in write_subcommand()
1080 fn subcmd(&mut self, sc_str: StyledStr, next_line_help: bool, longest: usize) { in subcmd()
H A Dhelp.rs9 pub(crate) fn write_help(writer: &mut StyledStr, cmd: &Command, usage: &Usage<'_>, use_long: bool) { in write_help()
/aosp_15_r20/external/rust/android-crates-io/crates/clap_complete/src/dynamic/
Dcompleter.rs35 ) -> Result<Vec<(OsString, Option<StyledStr>)>, std::io::Error> { in complete()
94 ) -> Result<Vec<(OsString, Option<StyledStr>)>, std::io::Error> { in complete_arg()
168 ) -> Vec<(OsString, Option<StyledStr>)> { in complete_arg_value()
226 ) -> Vec<(OsString, Option<StyledStr>)> { in complete_path()
/aosp_15_r20/external/rust/android-crates-io/crates/clap_complete/src/shells/
Delvish.rs60 fn escape_help<T: ToString>(help: Option<&StyledStr>, data: T) -> String { in escape_help()
Dpowershell.rs65 fn escape_help<T: ToString>(help: Option<&StyledStr>, data: T) -> String { in escape_help()

12