Struct readme_sync::Config [−][src]
pub struct Config<'a> {
pub idents: HashSet<Cow<'a, str>>,
pub name_values: HashSet<(Cow<'a, str>, Cow<'a, str>)>,
}
Expand description
A set of enabled named and key-value configuration options.
Fields
idents: HashSet<Cow<'a, str>>
Enabled named configuration options.
name_values: HashSet<(Cow<'a, str>, Cow<'a, str>)>
Enabled key-value configuration options.
Implementations
Creates a Config
with features defined in [package.metadata.docs.rs]
table in crates’ Cargo.toml.
pub fn with_features<I, T>(self, features: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<Cow<'a, str>>,
pub fn with_features<I, T>(self, features: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<Cow<'a, str>>,
Extend Config
with the feature names from an iterator.
Add target_arch, target_os and target_env Config
options from the specified target.
This method require non-default feature platforms
.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> UnwindSafe for Config<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more