pub fn from_hex_str<S: AsRef<str>>(s: S) -> Result<Self, Error> {
        let raw = <[u8; 16]>::from_hex(s.as_ref()).map_err(|e| {
            Error::parse_err(format!("couldn't parse AES key from hex string: {}", e))
        })?;
        Ok(Self::from_raw(raw))
    }
/// Parses an AES key from a hexadecimal string.
///
/// # Examples
///
/// ```
/// # use gbl::*;
/// # fn run() -> Result<(), Error> {
/// let key = AesKey::from_hex_str("E7E556B635A3520659A2E161CBDF4BC2")?;
/// # Ok(()) }    fn main() { run().unwrap() }
/// ```
Parses an AES key from a hexadecimal string.
Parses an AES key from a hexadecimal string .
pub fn from_hex_str<S: AsRef<str>>(s: S) -> Result<Self, Error> {
        let raw = <[u8; 16]>::from_hex(s.as_ref()).map_err(|e| {
            Error::parse_err(format!("couldn't parse AES key from hex string: {}", e))
        })?;
        Ok(Self::from_raw(raw))
    }
pub fn from_hex_str < S : AsRef < str > > ( s : S ) -> Result < Self , Error > { let raw = < [ u8 ; 16 ] > :: from_hex ( s . as_ref ( ) ) . map_err ( | e | { Error :: parse_err ( format ! ( " " e ) ) } ) ? ; Ok ( Self :: from_raw ( raw ) ) }
Parses an AES key from a hexadecimal string.
Parses an AES key from a hexadecimal string .
s
S
examples
None
use gbl::*;
None
fn run() -> result<(), error> {
None
ok(()) }    fn main() { run().unwrap() }
None