pub struct Str {
pub token_index: u32,
pub tokens: Arc<Vec<BdecodeToken>>,
pub buffer: Arc<Vec<u8>>,
}Fields§
§token_index: u32当前节点在 tokens 中的索引 0 - root 节点值; -1 - 未初始化
tokens: Arc<Vec<BdecodeToken>>解析后的 token 集合
buffer: Arc<Vec<u8>>存放解析前字符串的 buffer
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Str
impl RefUnwindSafe for Str
impl Send for Str
impl Sync for Str
impl Unpin for Str
impl UnwindSafe for Str
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