From 9fae53d74eb437eb12e95116d32e4fdf427eb56e Mon Sep 17 00:00:00 2001 From: KodrAus Date: Mon, 29 Jan 2024 16:30:27 +1000 Subject: [PATCH] fill in the test token API --- src/kv/value.rs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/kv/value.rs b/src/kv/value.rs index 854c0ebc0..67b5427ea 100644 --- a/src/kv/value.rs +++ b/src/kv/value.rs @@ -857,10 +857,24 @@ pub(in crate::kv) mod inner { pub fn to_borrowed_str(&self) -> Option<&'v str> { todo!() } + + #[cfg(test)] + pub fn to_test_token(&self) -> Token { + todo!() + } } - #[derive(Debug, PartialEq, Eq)] - pub enum Token {} + #[derive(Debug, PartialEq)] + pub enum Token<'v> { + None, + Bool(bool), + Char(char), + Str(&'v str), + F64(f64), + I64(i64), + U64(u64), + + } #[derive(Debug)] pub struct Error {}