mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 02:28:00 +00:00
Support borrowed tokens in serde_test
This commit is contained in:
@@ -39,12 +39,18 @@ pub enum Token<'a> {
|
||||
/// A serialized `str`.
|
||||
Str(&'a str),
|
||||
|
||||
/// A borrowed `str`.
|
||||
BorrowedStr(&'a str),
|
||||
|
||||
/// A serialized `String`.
|
||||
String(String),
|
||||
|
||||
/// A serialized `[u8]`
|
||||
Bytes(&'a [u8]),
|
||||
|
||||
/// A borrowed `[u8]`.
|
||||
BorrowedBytes(&'a [u8]),
|
||||
|
||||
/// A serialized `ByteBuf`
|
||||
ByteBuf(Vec<u8>),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user