EnvarParser

Struct EnvarParser 

Source
pub struct EnvarParser<T: ?Sized>(/* private fields */);

Trait Implementations§

Source§

impl<T, C> EnvarParse<ListEnvar<T, C>> for EnvarParser<ListEnvar<T, C>>

Source§

fn parse( varname: Cow<'static, str>, value: &str, ) -> Result<ListEnvar<T, C>, EnvarError>

Source§

impl<T> EnvarParse<Option<T>> for EnvarParser<Option<T>>
where EnvarParser<T>: EnvarParse<T>,

Source§

fn parse( varname: Cow<'static, str>, value: &str, ) -> Result<Option<T>, EnvarError>

Source§

impl EnvarParse<String> for EnvarParser<String>

Source§

fn parse(_varname: Cow<'static, str>, value: &str) -> Result<String, EnvarError>

Source§

impl EnvarParse<bool> for EnvarParser<bool>

Source§

fn parse(varname: Cow<'static, str>, value: &str) -> Result<bool, EnvarError>

Source§

impl EnvarParse<f32> for EnvarParser<f32>

Source§

fn parse(varname: Cow<'static, str>, s: &str) -> Result<f32, EnvarError>

Source§

impl EnvarParse<f64> for EnvarParser<f64>

Source§

fn parse(varname: Cow<'static, str>, s: &str) -> Result<f64, EnvarError>

Source§

impl EnvarParse<i16> for EnvarParser<i16>

Source§

fn parse(varname: Cow<'static, str>, s: &str) -> Result<i16, EnvarError>

Source§

impl EnvarParse<i32> for EnvarParser<i32>

Source§

fn parse(varname: Cow<'static, str>, s: &str) -> Result<i32, EnvarError>

Source§

impl EnvarParse<i64> for EnvarParser<i64>

Source§

fn parse(varname: Cow<'static, str>, s: &str) -> Result<i64, EnvarError>

Source§

impl EnvarParse<i8> for EnvarParser<i8>

Source§

fn parse(varname: Cow<'static, str>, s: &str) -> Result<i8, EnvarError>

Source§

impl EnvarParse<isize> for EnvarParser<isize>

Source§

fn parse(varname: Cow<'static, str>, s: &str) -> Result<isize, EnvarError>

Source§

impl EnvarParse<u16> for EnvarParser<u16>

Source§

fn parse(varname: Cow<'static, str>, s: &str) -> Result<u16, EnvarError>

Source§

impl EnvarParse<u32> for EnvarParser<u32>

Source§

fn parse(varname: Cow<'static, str>, s: &str) -> Result<u32, EnvarError>

Source§

impl EnvarParse<u64> for EnvarParser<u64>

Source§

fn parse(varname: Cow<'static, str>, s: &str) -> Result<u64, EnvarError>

Source§

impl EnvarParse<u8> for EnvarParser<u8>

Source§

fn parse(varname: Cow<'static, str>, s: &str) -> Result<u8, EnvarError>

Source§

impl EnvarParse<usize> for EnvarParser<usize>

Source§

fn parse(varname: Cow<'static, str>, s: &str) -> Result<usize, EnvarError>

Auto Trait Implementations§

§

impl<T> Freeze for EnvarParser<T>
where T: ?Sized,

§

impl<T> RefUnwindSafe for EnvarParser<T>
where T: RefUnwindSafe + ?Sized,

§

impl<T> Send for EnvarParser<T>
where T: Send + ?Sized,

§

impl<T> Sync for EnvarParser<T>
where T: Sync + ?Sized,

§

impl<T> Unpin for EnvarParser<T>
where T: Unpin + ?Sized,

§

impl<T> UnwindSafe for EnvarParser<T>
where T: UnwindSafe + ?Sized,

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

Source§

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

Source§

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.