enum DecoderState {
Object(u32),
List(u32),
String,
Value,
Number,
Colon,
Escape,
Unicode(u16, u16, u8),
Literal(Literal, u8),
}
Expand description
States based on https://www.json.org/json-en.html
Variants§
Object(u32)
Decoding an object
Contains index of start TapeElement::StartObject
List(u32)
Decoding a list
Contains index of start TapeElement::StartList
String
Value
Number
Colon
Escape
Unicode(u16, u16, u8)
A unicode escape sequence,
Consists of a (low surrogate, high surrogate, decoded length)
Literal(Literal, u8)
A boolean or null literal
Consists of (literal, decoded length)
Implementations§
Trait Implementations§
Source§impl Clone for DecoderState
impl Clone for DecoderState
Source§fn clone(&self) -> DecoderState
fn clone(&self) -> DecoderState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DecoderState
impl Debug for DecoderState
impl Copy for DecoderState
Auto Trait Implementations§
impl Freeze for DecoderState
impl RefUnwindSafe for DecoderState
impl Send for DecoderState
impl Sync for DecoderState
impl Unpin for DecoderState
impl UnwindSafe for DecoderState
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