pub struct List {
pub token_index: u32,
pub tokens: Arc<Vec<BdecodeToken>>,
pub buffer: Arc<Vec<u8>>,
pub item_indexes: Arc<Vec<u32>>,
/* private fields */
}Fields§
§token_index: u32当前节点在 tokens 中的索引 0 - root 节点值; -1 - 未初始化
tokens: Arc<Vec<BdecodeToken>>解析后的 token 集合
buffer: Arc<Vec<u8>>存放解析前字符串的 buffer
item_indexes: Arc<Vec<u32>>存放 list 和 map 中 item 的对应的 token 索引集合
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for List
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnwindSafe for List
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more