Lines Matching defs:state
136 // Uses an internal state machine to determine the flow.
149 let mut state = InnerState::Start;
152 match (state, eat_whitespace_until_not!(deserializer)) {
153 // If "}" is encountered in the initial or NoComma state, object is null.
159 // If "\" is encountered in the initial state or
175 // Sets the state to NoComma.
176 state = InnerState::NoComma;
178 // In the initial state, it is illegal to encounter any other character.
180 // In the NoComma state, when "," is encountered, converts state to HaveComma.
183 state = InnerState::AfterComma;
185 // In the NoComma state, it's illegal to encounter any other character.
187 // In the HaveComma state, it's illegal to encounter any other character.
372 // it enters the value 0 state directly.
452 let mut state = InnerState::Start;
455 match (state, eat_whitespace_until_not!(deserializer)) {
456 // In the initial state, if "]" is encountered, meaning the array is empty.
458 // If in the initial state or "," has appeared,
463 // Here sets the state to NoComma.
464 state = InnerState::NoComma;
466 // In NoComma state, the array ends when "]" is encountered.
468 // In the NoComma state, when "," is encountered, converts to the HaveComma state.
471 state = InnerState::AfterComma;
473 // In the NoComma state, it is illegal to encounter any other character.