pub struct EnvFlag<T> {
pub key: &'static str,
pub parser: fn(key: &str, val: &str) -> Result<T>,
}
Fields§
§key: &'static str
§parser: fn(key: &str, val: &str) -> Result<T>
Implementations§
Auto Trait Implementations§
impl<T> Freeze for EnvFlag<T>
impl<T> RefUnwindSafe for EnvFlag<T>
impl<T> Send for EnvFlag<T>
impl<T> Sync for EnvFlag<T>
impl<T> Unpin for EnvFlag<T>
impl<T> UnwindSafe for EnvFlag<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more