[−][src]Struct readme_sync::Config
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]
I: IntoIterator<Item = T>,
T: Into<Cow<'a, str>>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,