bolt11 0.1.0

Lightning Network BOLT11 Implementation (Payment Requests)
Documentation
/// Creates a HashMap containing the arguments
///
/// - Create a HashMap containing a given list of elements:
/// ```
/// let m = hashmap!["five" => 5, "six" => 6];
///
/// assert_eq!(*m.get(&"five").unwrap(), 5);
/// assert_eq!(*m.get(&"six").unwrap(), 6);
/// ```
macro_rules! hashmap {
    ($( $key: expr => $val: expr ),*) => {{
         let mut map = ::std::collections::HashMap::new();
         $( map.insert($key, $val); )*
         map
    }}
}

/// Verify that an expression matches a pattern
///
/// ```
/// let a = Some(42);
/// let b = Some(42);
///
/// assert!(matches!(a, b);
///
macro_rules! matches {
    ($e:expr, $p:pat) => (
        match $e {
            $p => true,
            _ => false
        }
    )
}