[−][src]Struct git_trim::config::ConfigBuilder
Methods
impl<'a, T> ConfigBuilder<'a, T> where
T: Clone,
[src]
T: Clone,
pub fn with_explicit(
self,
source: &'a str,
value: Option<T>
) -> ConfigBuilder<'a, T>
[src]
self,
source: &'a str,
value: Option<T>
) -> ConfigBuilder<'a, T>
pub fn with_default(self, value: &'a T) -> ConfigBuilder<'a, T>
[src]
impl<'a, T> ConfigBuilder<'a, T> where
T: ConfigValues + Clone,
[src]
T: ConfigValues + Clone,
impl<'a, T> ConfigBuilder<'a, Vec<T>> where
Vec<T>: ConfigValues + Clone,
[src]
Vec<T>: ConfigValues + Clone,
pub fn read_multi(self) -> Result<ConfigValue<Vec<T>>, Error>
[src]
impl<'a, T> ConfigBuilder<'a, T> where
T: Clone,
[src]
T: Clone,
pub fn parse_with<F>(self, parse: F) -> Result<Option<ConfigValue<T>>> where
F: FnOnce(&str) -> Result<T>,
[src]
F: FnOnce(&str) -> Result<T>,
pub fn parse_multi_with<F>(self, parse: F) -> Result<Option<ConfigValue<T>>> where
F: FnOnce(&[String]) -> Result<T>,
[src]
F: FnOnce(&[String]) -> Result<T>,
impl<'a, T> ConfigBuilder<'a, T>
[src]
pub fn parse(self) -> Result<Option<ConfigValue<T>>> where
T: FromStr + Clone,
T::Err: Error + Send + Sync + 'static,
[src]
T: FromStr + Clone,
T::Err: Error + Send + Sync + 'static,
pub fn parse_flatten<U>(self) -> Result<Option<ConfigValue<T>>> where
T: FromStr + IntoIterator<Item = U> + FromIterator<U> + Clone,
T::Err: Error + Send + Sync + 'static,
[src]
T: FromStr + IntoIterator<Item = U> + FromIterator<U> + Clone,
T::Err: Error + Send + Sync + 'static,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for ConfigBuilder<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> !Send for ConfigBuilder<'a, T>
impl<'a, T> !Sync for ConfigBuilder<'a, T>
impl<'a, T> Unpin for ConfigBuilder<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> UnwindSafe for ConfigBuilder<'a, T> where
T: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
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,
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, 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,