uri-template-core 0.1.0

RFC6570 URI Template library for Rust, with parsing, expansion, compile-time checked macros, and no_std support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::{Value, Values};
use alloc::borrow::Cow;

impl<'v, 's> Values<'v, 's> for () {
    #[inline]
    fn var(&self, _name: &str) -> Option<Cow<'_, Value<'v, 's>>> {
        None
    }
}

mod btree_map_impl;
pub use btree_map_impl::BTreeValues;

#[cfg(feature = "std")]
mod hash_map_impl;
#[cfg(feature = "std")]
pub use hash_map_impl::HashValues;