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>)>,
}

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

impl<'a> Config<'a>[src]

pub fn new() -> Self[src]

Creates an empty Config.

pub fn from_package_docs_rs_features(package: &'a Package) -> Self[src]

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>>, 
[src]

Extend Config with the feature names from an iterator.

pub fn with_target_arch_os_env(self, target: &str) -> Self[src]

Add target_arch, target_os and target_env Config options from the specified target.

This method require non-default feature platforms.

Trait Implementations

impl<'a> Clone for Config<'a>[src]

impl<'a> Debug for Config<'a>[src]

impl<'a> Default for Config<'a>[src]

impl<'a> Eq for Config<'a>[src]

impl<'a> PartialEq<Config<'a>> for Config<'a>[src]

impl<'a> StructuralEq for Config<'a>[src]

impl<'a> StructuralPartialEq for Config<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Config<'a>

impl<'a> Send for Config<'a>

impl<'a> Sync for Config<'a>

impl<'a> Unpin for Config<'a>

impl<'a> UnwindSafe for Config<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.