pub struct AnyState<M: Manager> {
pub data_type: DataType,
pub status: ParsingStatus,
pub current: JsonElement<M::Dealloc>,
pub stack: Vec<JsonStackElement<M::Dealloc>>,
pub consts: BTreeMap<String, Any<M::Dealloc>>,
}
Fields§
§data_type: DataType
§status: ParsingStatus
§current: JsonElement<M::Dealloc>
§stack: Vec<JsonStackElement<M::Dealloc>>
§consts: BTreeMap<String, Any<M::Dealloc>>
Implementations§
Source§impl<M: Manager> AnyState<M>
impl<M: Manager> AnyState<M>
pub fn set_djs(self) -> Self
pub fn set_mjs(self) -> Self
pub fn set_cjs(self) -> Self
pub fn parse( self, manager: M, token: JsonToken<M::Dealloc>, ) -> (AnyResult<M>, Option<String>)
pub fn parse_for_module( self, manager: M, token: JsonToken<M::Dealloc>, ) -> (JsonState<M>, Option<String>)
pub fn parse_import_begin(self, token: JsonToken<M::Dealloc>) -> AnyResult<M>
pub fn parse_import_end(self, token: JsonToken<M::Dealloc>) -> AnyResult<M>
pub fn begin_import(self) -> AnyResult<M>
pub fn end_import(self) -> AnyResult<M>
pub fn parse_value( self, manager: M, token: JsonToken<M::Dealloc>, ) -> AnyResult<M>
pub fn push_value(self, value: Any<M::Dealloc>) -> AnyResult<M>
pub fn push_key(self, s: String) -> AnyResult<M>
pub fn parse_array_comma( self, manager: M, token: JsonToken<M::Dealloc>, ) -> AnyResult<M>
pub fn parse_array_begin( self, manager: M, token: JsonToken<M::Dealloc>, ) -> AnyResult<M>
pub fn parse_array_value( self, manager: M, token: JsonToken<M::Dealloc>, ) -> AnyResult<M>
pub fn begin_array(self) -> AnyResult<M>
pub fn end_array(self, manager: M) -> AnyResult<M>
pub fn parse_object_begin( self, manager: M, token: JsonToken<M::Dealloc>, ) -> AnyResult<M>
pub fn parse_object_next( self, manager: M, token: JsonToken<M::Dealloc>, ) -> AnyResult<M>
pub fn parse_object_comma( self, manager: M, token: JsonToken<M::Dealloc>, ) -> AnyResult<M>
pub fn parse_object_key(self, token: JsonToken<M::Dealloc>) -> AnyResult<M>
pub fn begin_object(self) -> AnyResult<M>
pub fn end_object(self, manager: M) -> AnyResult<M>
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for AnyState<M>
impl<M> RefUnwindSafe for AnyState<M>
impl<M> Send for AnyState<M>
impl<M> Sync for AnyState<M>
impl<M> Unpin for AnyState<M>
impl<M> UnwindSafe for AnyState<M>
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