[][src]Struct justconfig::item::TypedItem

pub struct TypedItem<T: FromStr>(_);

Newtype for Items while they are passed though the validators of the config pipeline and to the ValueExtractor.

See Item for more Information.

Implementations

impl<T: FromStr> TypedItem<T>[src]

pub fn filter(
    self,
    filter: impl Fn(&T) -> Result<(), Box<dyn Error>>
) -> Result<Self, ConfigError>
[src]

Trait Implementations

impl<T: Clone + FromStr> Clone for TypedItem<T>[src]

impl<T: FromStr> TryInto<TypedItem<T>> for Result<StringItem, ConfigError> where
    T::Err: Error + 'static, 
[src]

type Error = ConfigError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<T> !RefUnwindSafe for TypedItem<T>[src]

impl<T> !Send for TypedItem<T>[src]

impl<T> !Sync for TypedItem<T>[src]

impl<T> Unpin for TypedItem<T>[src]

impl<T> !UnwindSafe for TypedItem<T>[src]

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.