pub fn load_typed<T>(&self, allow_zero: bool) -> io::Result<Option<T>>
    where
        T: DeserializeOwned,
    {
        self.load(allow_zero)?
            .map(|value| serde_json::from_value(value).map_err(Into::into))
            .transpose()
    }
/// Loads variable with [`Self::load`] and then attempts to convert it
/// to the specified type
///
/// ### Notes
///
/// * If `allow_zero` is true, then a value of 0 is considered the value of
///   the variable rather than vim's default of not being found
Loads variable with [`Self::load`] and then attempts to convert it
to the specified type
Loads variable with [ ` Self :: load ` ] and then attempts to convert it to the specified type
pub fn load_typed<T>(&self, allow_zero: bool) -> io::Result<Option<T>>
    where
        T: DeserializeOwned,
    {
        self.load(allow_zero)?
            .map(|value| serde_json::from_value(value).map_err(Into::into))
            .transpose()
    }
pub fn load_typed < T > ( & self , allow_zero : bool ) -> io :: Result < Option < T > > where T : DeserializeOwned , { self . load ( allow_zero ) ? . map ( | value | serde_json :: from_value ( value ) . map_err ( Into :: into ) ) . transpose ( ) }
Loads variable with [`Self::load`] and then attempts to convert it
to the specified type
Loads variable with [ ` Self :: load ` ] and then attempts to convert it to the specified type
&self
allow_zero
bool
notes
If `allow_zero` is true, then a value of 0 is considered the value of
the variable rather than vim's default of not being found
If ` allow_zero ` is true then a value of 0 is considered the value of the variable rather than vim ' s default of not being found