zjson/
lib.rs

1#![doc = include_str!("../README.md")]
2#![warn(
3    clippy::all,
4    clippy::pedantic,
5    clippy::nursery,
6    clippy::perf,
7    clippy::cargo,
8    clippy::alloc_instead_of_core,
9    clippy::std_instead_of_alloc,
10    clippy::std_instead_of_core,
11    clippy::get_unwrap,
12    clippy::panic_in_result_fn,
13    clippy::todo,
14    clippy::undocumented_unsafe_blocks,
15    clippy::error_impl_error,
16    missing_copy_implementations,
17    missing_debug_implementations,
18    missing_docs
19)]
20#![cfg_attr(not(feature = "std"), no_std)]
21// TODO: remove
22#![allow(
23    clippy::module_name_repetitions,
24    clippy::missing_panics_doc,
25    clippy::cargo_common_metadata,
26    clippy::panic_in_result_fn
27)]
28
29use core::fmt;
30
31/// Types that abstract over all JSON types.
32pub mod any;
33/// Types related to JSON arrays.
34pub mod array;
35mod debug;
36/// Types related to JSON documents.
37pub mod document;
38/// Types related to JSON `true`, `false` and `null` values.
39pub mod literal;
40/// Types related to JSON documents with multiple values.
41pub mod multi_document;
42/// Types related to JSON numbers.
43pub mod number;
44/// Types related to JSON objects.
45pub mod object;
46/// Types related to JSON strings.
47pub mod string;
48
49mod containers;
50mod status;
51#[cfg(test)]
52mod test_parent;
53
54trait Parent<'json> {
55    fn set_remaining<'a>(&'a mut self, remaining: &'json str)
56    where
57        'json: 'a;
58
59    fn debug_parents(&self, list: &mut fmt::DebugList<'_, '_>);
60}