Added key_into() function.

[?]
Jun 29, 2021, 2:06 AM
446EWE33BRKR2QD6KZTMX7PNH5P46B76EKVZFRNCZ57HJ2CXGBRQC

Dependencies

Change contents

  • replacement in src/lib.rs at line 144
    [3.22814][3.22814:22838]()
    #[derive(Clone, Debug)]
    [3.22814]
    [3.22838]
    #[derive(Clone, Copy, Debug)]
  • edit in src/lib.rs at line 178
    [2.437]
    [2.437]
    }
    }
    pub fn key_into<T>(self) -> Result<T>
    where
    KeyTreeRef<'a>: TryInto<T>,
    KeyTreeRef<'a>: TryInto<T, Error = Error>,
    {
    // Use the client implementation `TryInto<T> for KeyTreeRef`.
    self.try_into()
    }
    pub fn keyvalue_into<T>(&self) -> Result<T>
    where
    T: FromStr
    {
    match T::from_str(self.top_value().value) {
    Ok(t) => Ok(t),
    Err(err) => {
    Err(Error::new(ErrorKind::FromStr(
    format!("{}: {}", key, value),
    format!("{}", kt.1),
    )))
    },
  • edit in src/error.rs at line 13
    [3.36955]
    [3.36955]
  • edit in src/error.rs at line 15
    [3.36956]
    [3.36956]