uri-template-system-core 0.1.5

URI Template System Core (prefer top-level URI Template System)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod encode;
pub mod satisfy;

use std::fmt::Result;

// =============================================================================
// String
// =============================================================================

// Traits

pub trait Encode {
    fn encode(&mut self, raw: &str, satisfier: &impl Satisfy) -> Result;
}

pub trait Satisfy {
    fn satisfy(&self, input: &str) -> usize;
}