Struct aopt::opt::ConfigBuilderWith

source ·
pub struct ConfigBuilderWith<C, T, I> { /* private fields */ }

Implementations§

source§

impl<C, T, I> ConfigBuilderWith<C, T, I>

source

pub fn new(init: T, inner: ConfigBuilder<C, I>) -> Self

source

pub fn inner(&self) -> &ConfigBuilder<C, I>

source

pub fn inner_mut(&mut self) -> &mut ConfigBuilder<C, I>

source

pub fn config(&self) -> &C

source

pub fn config_mut(&mut self) -> &mut C

Trait Implementations§

source§

impl<C, T, I> ConfigBuild<C> for ConfigBuilderWith<C, T, I>
where I: 'static, T: ConfigBuild<C>, C: ConfigValue + Default,

§

type Val = I

source§

fn build<P>(self, parser: &P) -> Result<C, Error>

source§

impl<C, T, I> ConfigBuildMutable for ConfigBuilderWith<C, T, I>
where C: Default,

§

type Cfg = C

source§

fn config_mut(&mut self) -> &mut C

source§

impl<C, T, I> Debug for ConfigBuilderWith<C, T, I>
where T: Debug, C: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<C, T, I> Default for ConfigBuilderWith<C, T, I>
where T: Default, C: Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C, T, I> From<T> for ConfigBuilderWith<C, T, I>
where C: Default,

source§

fn from(value: T) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<C, T, I> Freeze for ConfigBuilderWith<C, T, I>
where T: Freeze, C: Freeze,

§

impl<C, T, I> RefUnwindSafe for ConfigBuilderWith<C, T, I>

§

impl<C, T, I> Send for ConfigBuilderWith<C, T, I>
where T: Send, C: Send, I: Send,

§

impl<C, T, I> Sync for ConfigBuilderWith<C, T, I>
where T: Sync, C: Sync, I: Sync,

§

impl<C, T, I> Unpin for ConfigBuilderWith<C, T, I>
where T: Unpin, C: Unpin, I: Unpin,

§

impl<C, T, I> UnwindSafe for ConfigBuilderWith<C, T, I>
where T: UnwindSafe, C: UnwindSafe, I: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<!> for T

source§

fn from(t: !) -> T

Converts to this type from the input type.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> ErasedTy for T
where T: Any + 'static,