Skip to content

Commit

Permalink
fill in the test token API
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Jan 29, 2024
1 parent e3a5b98 commit 9fae53d
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/kv/value.rs
Expand Up @@ -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 {}
Expand Down

0 comments on commit 9fae53d

Please sign in to comment.