mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
docs: Raise visibility of 'string' feature
This commit is contained in:
parent
2f93c1790f
commit
bac3eb3280
3 changed files with 7 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
|||
//! * **env**: Turns on the usage of environment variables during parsing.
|
||||
//! * **unicode**: Turns on support for unicode characters (including emoji) in arguments and help messages.
|
||||
//! * **wrap_help**: Turns on the help text wrapping feature, based on the terminal size.
|
||||
//! * **string**: Allow runtime generated strings
|
||||
//! * **string**: Allow runtime generated strings (e.g. with [`Str`][crate::builder::Str]).
|
||||
//!
|
||||
//! #### Experimental features
|
||||
//!
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
use crate::builder::Str;
|
||||
|
||||
/// A UTF-8-encoded fixed string
|
||||
///
|
||||
/// **NOTE:** To support dynamic values (i.e. `OsString`), enable the [`string`
|
||||
/// feature][crate::_features]
|
||||
#[derive(Default, Clone, Eq, PartialEq, PartialOrd, Ord, Hash)]
|
||||
pub struct OsStr {
|
||||
name: Inner,
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
/// A UTF-8-encoded fixed string
|
||||
///
|
||||
/// **NOTE:** To support dynamic values (i.e. `String`), enable the [`string`
|
||||
/// feature][crate::_features]
|
||||
#[derive(Default, Clone, Eq, PartialEq, PartialOrd, Ord, Hash)]
|
||||
pub struct Str {
|
||||
name: Inner,
|
||||
|
|
Loading…
Reference in a new issue