### Example Usage of ser_json Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Demonstrates how to use the `ser_json` method to serialize an integer. Ensure `SerJsonState` is initialized correctly. ```rust let mut s = SerJsonState::new(String::new()); 42u32.ser_json(0, &mut s); assert_eq!(s.out, "42"); ``` -------------------------------- ### DeBin Example for u32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeBin.html Demonstrates deserializing a u32 from binary data using `de_bin`. The offset is updated after parsing. ```rust let bytes = [1, 0, 0, 0, 2, 0, 0, 0]; let mut offset = 4; let two = u32::de_bin(&mut offset, &bytes).unwrap(); assert_eq!(two, 2); assert_eq!(offset, 8); ``` -------------------------------- ### SerJsonState::st_pre Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.SerJsonState.html Appends a prefix for starting a structure (e.g., '{' or '[') to the JSON output. ```APIDOC ## pub fn st_pre(&mut self) Appends a prefix for starting a structure (e.g., '{' or '[') to the JSON output. ``` -------------------------------- ### Example Usage of ser_bin for u32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Demonstrates how to use the `ser_bin` method to serialize a `u32` into a byte vector. The output format is little-endian. ```rust let mut s = Vec::new(); 42u32.ser_bin(&mut s); assert_eq!(s, vec![42, 0, 0, 0]) ``` -------------------------------- ### Example Usage of ser_ron Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Demonstrates how to use the `ser_ron` method to serialize an integer (42) into a RON string. Requires an initialized `SerRonState`. ```rust let mut s = SerRonState { out: String::new() }; 42u32.ser_ron(0, &mut s); assert_eq!(s.out, "42"); ``` -------------------------------- ### Example Usage of de_ron for u32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Demonstrates parsing a RON string into a u32 using the `de_ron` method. Requires initializing `DeRonState` and `Chars`. ```rust let mut state = DeRonState::default(); let mut chars = "42".chars(); state.next(&mut chars); state.next_tok(&mut chars).unwrap(); let out = u32::de_ron(&mut state, &mut chars).unwrap(); assert_eq!(out, 42); ``` -------------------------------- ### Example Usage of de_json for u32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeJson.html Demonstrates deserializing a u32 from a JSON string using the `de_json` method. Ensure the `DeJsonState` is properly initialized and tokens are consumed. ```rust let mut state = DeJsonState::default(); let mut chars = "42".chars(); state.next(&mut chars); state.next_tok(&mut chars).unwrap(); let out = u32::de_json(&mut state, &mut chars).unwrap(); assert_eq!(out, 42); ``` -------------------------------- ### st_pre Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.SerRonState.html Appends the prefix for a new scope (e.g., start of a struct or enum) to the serialization output. ```APIDOC ## pub fn st_pre(&mut self) ### Description Appends the prefix for a new scope (e.g., opening brace for a struct) to the serialization output. ``` -------------------------------- ### Get TOML value as table Source: https://docs.rs/nanoserde/0.2.1/nanoserde/enum.Toml.html Retrieves the TOML value as a table (BTreeMap). Panics if the value is not a table. ```rust pub fn arr(&self) -> &Vec> ``` -------------------------------- ### Get TOML value as simple array Source: https://docs.rs/nanoserde/0.2.1/nanoserde/enum.Toml.html Retrieves the TOML value as a simple array (Vec). Panics if the value is not an array. ```rust pub fn simple_arr(&self) -> &Vec ``` -------------------------------- ### Get TOML value as date string Source: https://docs.rs/nanoserde/0.2.1/nanoserde/enum.Toml.html Retrieves the TOML value as a date string. Panics if the value is not a date string. ```rust pub fn date(&self) -> String ``` -------------------------------- ### Get TypeId for Toml Source: https://docs.rs/nanoserde/0.2.1/nanoserde/enum.Toml.html Retrieves the TypeId of the Toml enum. ```rust fn type_id(&self) -> TypeId ``` -------------------------------- ### Get TOML value as boolean Source: https://docs.rs/nanoserde/0.2.1/nanoserde/enum.Toml.html Retrieves the TOML value as a boolean. Panics if the value is not a boolean. ```rust pub fn boolean(&self) -> bool ``` -------------------------------- ### Get TOML value as float Source: https://docs.rs/nanoserde/0.2.1/nanoserde/enum.Toml.html Retrieves the TOML value as a float. Panics if the value is not a float. ```rust pub fn num(&self) -> f64 ``` -------------------------------- ### SerJsonState::new Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.SerJsonState.html Creates a new SerJsonState with the given output string. ```APIDOC ## pub fn new(out: String) -> Self Creates a new `SerJsonState` with the provided initial output string. ``` -------------------------------- ### Generic TryFrom Implementation Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeJsonErr.html Demonstrates a generic TryFrom implementation where conversion is always successful. ```rust type Error = Infallible ``` ```rust fn try_from(value: U) -> Result>::Error> ``` -------------------------------- ### Get TOML value as string Source: https://docs.rs/nanoserde/0.2.1/nanoserde/enum.Toml.html Retrieves the TOML value as a string slice. Panics if the value is not a string. ```rust pub fn str(&self) -> &str ``` -------------------------------- ### Generic TryInto Implementation Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeJsonErr.html Illustrates a generic TryInto implementation for types that can be converted via TryFrom. ```rust type Error = >::Error ``` ```rust fn try_into(self) -> Result>::Error> ``` -------------------------------- ### SerRon Implementation for f64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the f64 floating-point type. ```APIDOC ### impl SerRon for f64 #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerJson Implementation for i64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `i64` type. ```APIDOC ### impl SerJson for i64 #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerRon Implementation for u64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the u64 integer type. ```APIDOC ### impl SerRon for u64 #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerJson Implementation for u64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `u64` type. ```APIDOC ### impl SerJson for u64 #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerRon Implementation for (A, B) Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for 2-element tuples. ```APIDOC ### impl SerRon for (A, B) where A: SerRon, B: SerRon, #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### Generic Implementations for TomlErr Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.TomlErr.html Demonstrates various auto-trait and blanket implementations for TomlErr, including Any, Borrow, CloneToUninit, From, Into, ToOwned, ToString, TryFrom, and TryInto. ```rust fn type_id(&self) -> TypeId ``` ```rust fn borrow(&self) -> &T ``` ```rust fn borrow_mut(&mut self) -> &mut T ``` ```rust unsafe fn clone_to_uninit(&self, dest: *mut u8) ``` ```rust fn from(t: T) -> T ``` ```rust fn into(self) -> U ``` ```rust type Owned = T ``` ```rust fn to_owned(&self) -> T ``` ```rust fn clone_into(&self, target: &mut T) ``` ```rust fn to_string(&self) -> String ``` ```rust type Error = Infallible ``` ```rust fn try_from(value: U) -> Result>::Error> ``` ```rust type Error = >::Error ``` ```rust fn try_into(self) -> Result>::Error> ``` -------------------------------- ### SerRon Implementation for i64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the i64 integer type. ```APIDOC ### impl SerRon for i64 #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerJson Implementation for f64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `f64` type. ```APIDOC ### impl SerJson for f64 #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerRon Implementation for (A, B, C) Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for 3-element tuples. ```APIDOC ### impl SerRon for (A, B, C) where A: SerRon, B: SerRon, C: SerRon, #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### DeBinErr::new Constructor Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeBinErr.html A helper function to construct a new DeBinErr instance. ```APIDOC ## impl DeBinErr ### pub fn new(offset: usize, expected_length: usize, actual_length: usize) -> Self Helper for constructing `DeBinErr`. ``` -------------------------------- ### SerRon Implementation for i32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the i32 integer type. ```APIDOC ### impl SerRon for i32 #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerJson Implementation for (A, B, C) Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for 3-element tuples. ```APIDOC ### impl SerJson for (A, B, C) where A: SerJson, B: SerJson, C: SerJson, #### fn ser_json(&self, d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerRon Implementation for f32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the f32 floating-point type. ```APIDOC ### impl SerRon for f32 #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerRon Implementation for u16 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the u16 integer type. ```APIDOC ### impl SerRon for u16 #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerRon Implementation for i16 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the i16 integer type. ```APIDOC ### impl SerRon for i16 #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerJson Implementation for i32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `i32` type. ```APIDOC ### impl SerJson for i32 #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerRon Implementation for BTreeMap Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for BTreeMap. ```APIDOC ### impl SerRon for BTreeMap where K: SerRon, V: SerRon, #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerRon Implementation for (A, B, C, D) Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for 4-element tuples. ```APIDOC ### impl SerRon for (A, B, C, D) where A: SerRon, B: SerRon, C: SerRon, D: SerRon, #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### DeBin Derive Macro Usage - nanoserde Source: https://docs.rs/nanoserde/0.2.1/nanoserde/derive.DeBin.html Demonstrates the basic usage of the #[derive(DeBin)] macro. Attributes like #[nserde] can be used within the struct to customize deserialization. ```rust #[derive(DeBin)] { // Attributes available to this derive: #[nserde] } ``` -------------------------------- ### SerRon Implementation for Option Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for Option. ```APIDOC ### impl SerRon for Option where T: SerRon, #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### Generic Clone Implementation Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeJsonErr.html Demonstrates the generic implementation of Clone for any type T that implements Clone. ```rust unsafe fn clone_to_uninit(&self, dest: *mut u8) ``` -------------------------------- ### SerRon Implementation for u32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the u32 integer type. ```APIDOC ### impl SerRon for u32 #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerRon Implementation for i8 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the i8 integer type. ```APIDOC ### impl SerRon for i8 #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerJson Implementation for (A, B, C, D) Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for 4-element tuples. ```APIDOC ### impl SerJson for (A, B, C, D) where A: SerJson, B: SerJson, C: SerJson, D: SerJson, #### fn ser_json(&self, d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerRon Implementation for HashMap Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for HashMap. Available on `std` feature. ```APIDOC ### impl SerRon for HashMap where K: SerRon, V: SerRon, Available on **crate feature`std`** only. #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerJson Implementation for (A, B) Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for 2-element tuples. ```APIDOC ### impl SerJson for (A, B) where A: SerJson, B: SerJson, #### fn ser_json(&self, d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerRon Implementation for Box Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for Box. ```APIDOC ### impl SerRon for Box where T: SerRon, #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerRon Implementation for Vec Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for Vec. ```APIDOC ### impl SerRon for Vec where T: SerRon, #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerJson Implementation for i16 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `i16` type. ```APIDOC ### impl SerJson for i16 #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### Display Implementation for TomlErr Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.TomlErr.html Allows TomlErr instances to be formatted for display. ```APIDOC ### impl Display for TomlErr #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. ``` -------------------------------- ### SerJson Implementation for () Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the unit type `()`. ```APIDOC ### impl SerJson for () #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerRon Implementation for () Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the unit type `()`. ```APIDOC ### impl SerRon for () #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerJson Implementation for u16 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `u16` type. ```APIDOC ### impl SerJson for u16 #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerJson Implementation for f32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `f32` type. ```APIDOC ### impl SerJson for f32 #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerBin Implementation for f64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the 64-bit floating-point type. ```APIDOC ### impl SerBin for f64 #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerJson Implementation for u32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `u32` type. ```APIDOC ### impl SerJson for u32 #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerRon Implementation for BTreeSet Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for BTreeSet. ```APIDOC ### impl SerRon for BTreeSet where T: SerRon, #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerJson Implementation for i8 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `i8` type. ```APIDOC ### impl SerJson for i8 #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### Default Implementation Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeRonState.html Provides a default value for the DeRonState struct. ```APIDOC ## impl Default for DeRonState ### Methods - `fn default() -> DeRonState` Returns the “default value” for a type. ``` -------------------------------- ### SerRon Implementation for u8 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the u8 integer type. ```APIDOC ### impl SerRon for u8 #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerBin Implementation for () Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the unit type. ```APIDOC ### impl SerBin for () #### fn ser_bin(&self, _s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerJson Implementation for HashMap Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for `HashMap`. Available on `crate feature 'std'` only. ```APIDOC ### impl SerJson for HashMap where K: SerJson, V: SerJson, Available on **crate feature`std`** only. #### fn ser_json(&self, d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerRon Implementation for usize Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the usize integer type. ```APIDOC ### impl SerRon for usize #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### DeJsonErr Implementations Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeJsonErr.html Details on the trait implementations for the DeJsonErr struct, including Clone, Debug, Display, and Error. ```APIDOC ## Trait Implementations for DeJsonErr ### `impl Clone for DeJsonErr` - `fn clone(&self) -> DeJsonErr`: Returns a duplicate of the value. - `fn clone_from(&mut self, source: &Self)`: Performs copy-assignment from `source`. ### `impl Debug for DeJsonErr` - `fn fmt(&self, f: &mut Formatter<'_>) -> Result`: Formats the value using the given formatter. ### `impl Display for DeJsonErr` - `fn fmt(&self, f: &mut Formatter<'_>) -> Result`: Formats the value using the given formatter. ### `impl Error for DeJsonErr` - `fn source(&self) -> Option<&(dyn Error + 'static)>`: Returns the lower-level source of this error, if any. - `fn description(&self) -> &str`: Deprecated. Use the Display impl or to_string(). - `fn cause(&self) -> Option<&dyn Error>`: Deprecated. Replaced by Error::source. - `fn provide<'a>(&'a self, request: &mut Request<'a>)`: Provides type-based access to context intended for error reports. (Nightly-only experimental API) ``` -------------------------------- ### SerJson Implementation for usize Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `usize` type. ```APIDOC ### impl SerJson for usize #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### Default DeRonState Initialization Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeRonState.html Provides the default value for DeRonState, useful for initializing the deserialization state. ```rust fn default() -> DeRonState ``` -------------------------------- ### serialize_bin Method Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html A convenient wrapper around `ser_bin` that returns the serialized bytes as a `Vec`. ```rust fn serialize_bin(&self) -> Vec { // ... } ``` -------------------------------- ### SerRon Implementation for String Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the String type. ```APIDOC ### impl SerRon for String #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerBin Implementation for i64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the 64-bit signed integer type. ```APIDOC ### impl SerBin for i64 #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerJson Implementation for BTreeMap Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for `BTreeMap`. ```APIDOC ### impl SerJson for BTreeMap where K: SerJson, V: SerJson, #### fn ser_json(&self, d: usize, s: &mut SerJsonState) ``` -------------------------------- ### DeRon Implementation for BTreeMap Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for `BTreeMap`, requiring `K` to implement `DeRon`, `Eq`, and `Ord`, and `V` to implement `DeRon`. ```rust fn de_ron(s: &mut DeRonState, i: &mut Chars<'_>) -> Result ``` -------------------------------- ### DeBinErr Constructor Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeBinErr.html A helper function to construct a new DeBinErr instance. Use this when an error occurs during deserialization to provide context. ```rust pub fn new(offset: usize, expected_length: usize, actual_length: usize) -> Self ``` -------------------------------- ### SerRon Implementation for HashSet Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for HashSet. Available on `std` feature. ```APIDOC ### impl SerRon for HashSet where T: SerRon, Available on **crate feature`std`** only. #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### Toml Indexing Implementation Source: https://docs.rs/nanoserde/0.2.1/nanoserde/enum.Toml.html Implements the indexing operation for Toml values using usize. ```rust fn index(&self, index: usize) -> &Self::Output ``` -------------------------------- ### SerJson Implementation for Option Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for `Option`. ```APIDOC ### impl SerJson for Option where T: SerJson, #### fn ser_json(&self, d: usize, s: &mut SerJsonState) ``` -------------------------------- ### Try Convert U into Toml Source: https://docs.rs/nanoserde/0.2.1/nanoserde/enum.Toml.html Attempts to convert a value of type U into a Toml value, returning a Result. ```rust fn try_from(value: U) -> Result>::Error> ``` -------------------------------- ### SerBin Implementation for (A, B) Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for 2-element tuples. ```APIDOC ### impl SerBin for (A, B) where A: SerBin, B: SerBin, #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### DeRonState Methods Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeRonState.html Provides methods for managing the deserialization state, including advancing the parser, generating errors, and consuming specific tokens or delimiters. ```APIDOC ## impl DeRonState ### Methods - `pub fn next(&mut self, i: &mut Chars<'_>)` - `pub fn err_exp(&self, name: &str) -> DeRonErr` - `pub fn err_nf(&self, name: &str) -> DeRonErr` - `pub fn err_enum(&self, name: &str) -> DeRonErr` - `pub fn err_token(&self, what: &str) -> DeRonErr` - `pub fn err_range(&self, what: &str) -> DeRonErr` - `pub fn err_type(&self, what: &str) -> DeRonErr` - `pub fn err_parse(&self, what: &str) -> DeRonErr` - `pub fn eat_comma_paren(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` - `pub fn eat_comma_block(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` - `pub fn eat_comma_curly(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` - `pub fn colon(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` - `pub fn ident(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` - `pub fn next_colon(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` - `pub fn next_ident(&mut self) -> Option<()>` - `pub fn paren_open(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` - `pub fn paren_close(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` - `pub fn block_open(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` - `pub fn block_close(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` - `pub fn curly_open(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` - `pub fn curly_close(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` - `pub fn u64_range(&mut self, max: u64) -> Result` - `pub fn i64_range(&mut self, min: i64, max: i64) -> Result` - `pub fn as_f64(&mut self) -> Result` - `pub fn as_bool(&mut self) -> Result` - `pub fn as_string(&mut self) -> Result` - `pub fn next_tok(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>` ``` -------------------------------- ### SerJson Implementation for u8 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `u8` type. ```APIDOC ### impl SerJson for u8 #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerBin Implementation for (A, B, C) Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for 3-element tuples. ```APIDOC ### impl SerBin for (A, B, C) where A: SerBin, B: SerBin, C: SerBin, #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerRon Implementation for [T] Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for slices. ```APIDOC ### impl SerRon for [T] where T: SerRon, #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerBin Implementation for u64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the 64-bit unsigned integer type. ```APIDOC ### impl SerBin for u64 #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerBin Implementation for BTreeMap Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for BTreeMap. ```APIDOC ### impl SerBin for BTreeMap where K: SerBin, V: SerBin, #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### Clone Implementation for DeRonErr Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeRonErr.html Provides methods to duplicate DeRonErr instances. ```rust fn clone(&self) -> DeRonErr ``` ```rust fn clone_from(&mut self, source: &Self) ``` -------------------------------- ### Clone Implementation for TomlErr Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.TomlErr.html Provides methods to clone TomlErr instances. ```APIDOC ### impl Clone for TomlErr #### fn clone(&self) -> TomlErr Returns a duplicate of the value. #### fn clone_from(&mut self, source: &Self) Performs copy-assignment from `source`. ``` -------------------------------- ### SerBin Implementation for HashMap Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for HashMap (requires 'std' feature). ```APIDOC ### impl SerBin for HashMap where K: SerBin, V: SerBin, Available on **crate feature`std`** only. #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### DeRon Implementation for 4-Tuple Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for a 4-element tuple `(A, B, C, D)`, where `A`, `B`, `C`, and `D` must implement `DeRon`. ```rust fn de_ron( s: &mut DeRonState, i: &mut Chars<'_>, ) -> Result<(A, B, C, D), DeRonErr> ``` -------------------------------- ### SerBin Implementation for f32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the 32-bit floating-point type. ```APIDOC ### impl SerBin for f32 #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerBin Implementation for Option Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for Option. ```APIDOC ### impl SerBin for Option where T: SerBin, #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### Clone Implementation for DeBinErr Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeBinErr.html Provides the ability to clone DeBinErr instances. This is useful for duplicating error information. ```rust fn clone(&self) -> DeBinErr ``` ```rust fn clone_from(&mut self, source: &Self) ``` -------------------------------- ### DeRon Implementation for 3-Tuple Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for a 3-element tuple `(A, B, C)`, where `A`, `B`, and `C` must implement `DeRon`. ```rust fn de_ron(s: &mut DeRonState, i: &mut Chars<'_>) -> Result<(A, B, C), DeRonErr> ``` -------------------------------- ### SerJson Implementation for HashSet Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for `HashSet`. Available on `crate feature 'std'` only. ```APIDOC ### impl SerJson for HashSet where T: SerJson, Available on **crate feature`std`** only. #### fn ser_json(&self, d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerBin Implementation for usize Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the usize type. ```APIDOC ### impl SerBin for usize #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerBin Implementation for Box Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for Box. ```APIDOC ### impl SerBin for Box where T: SerBin, #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerJson Implementation for str Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for string slices (`str`). ```APIDOC ### impl SerJson for str #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerBin Implementation for String Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the String type. ```APIDOC ### impl SerBin for String #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerJson Implementation for String Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `String` type. ```APIDOC ### impl SerJson for String #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerRon Implementation for LinkedList Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for LinkedList. ```APIDOC ### impl SerRon for LinkedList where T: SerRon, #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerBin Implementation for i32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the 32-bit signed integer type. ```APIDOC ### impl SerBin for i32 #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### DeRon Implementation for Box Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for `Box`, where `T` must implement `DeRon`. ```rust fn de_ron(s: &mut DeRonState, i: &mut Chars<'_>) -> Result, DeRonErr> ``` -------------------------------- ### SerJson Implementation for Box Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for `Box`. ```APIDOC ### impl SerJson for Box where T: SerJson, #### fn ser_json(&self, d: usize, s: &mut SerJsonState) ``` -------------------------------- ### Derive Macro SerJson with #[nserde] Attribute Source: https://docs.rs/nanoserde/0.2.1/nanoserde/derive.SerJson.html Demonstrates the basic usage of the #[derive(SerJson)] macro. The #[nserde] attribute can be used within the struct or enum definition to customize serialization behavior. ```rust #[derive(SerJson)] { // Attributes available to this derive: #[nserde] } ``` -------------------------------- ### Debug Implementation for TomlErr Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.TomlErr.html Allows TomlErr instances to be formatted for debugging. ```APIDOC ### impl Debug for TomlErr #### fn fmt(&self, f: &mut Formatter<'_>) -> Result Formats the value using the given formatter. ``` -------------------------------- ### Default Implementation Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeJsonState.html Provides a default state for DeJsonState. ```APIDOC ### impl Default for DeJsonState #### `fn default() -> DeJsonState` Returns the default value for `DeJsonState`, initializing all fields to their default states. ``` -------------------------------- ### Toml Inequality Comparison Source: https://docs.rs/nanoserde/0.2.1/nanoserde/enum.Toml.html Tests for inequality between two Toml values. ```rust fn ne(&self, other: &Rhs) -> bool ``` -------------------------------- ### SerJsonState::label Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.SerJsonState.html Adds a label to the JSON output. ```APIDOC ## pub fn label(&mut self, label: &str) Adds a label to the JSON output. ``` -------------------------------- ### SerBin Implementation for (A, B, C, D) Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for 4-element tuples. ```APIDOC ### impl SerBin for (A, B, C, D) where A: SerBin, B: SerBin, C: SerBin, D: SerBin, #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerBin Implementation for i8 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the 8-bit signed integer type. ```APIDOC ### impl SerBin for i8 #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerBin Implementation for i16 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the 16-bit signed integer type. ```APIDOC ### impl SerBin for i16 #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### DeRon Implementation for 2-Tuple Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for a 2-element tuple `(A, B)`, where both `A` and `B` must implement `DeRon`. ```rust fn de_ron(s: &mut DeRonState, i: &mut Chars<'_>) -> Result<(A, B), DeRonErr> ``` -------------------------------- ### SerJson Implementation for BTreeSet Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for `BTreeSet`. ```APIDOC ### impl SerJson for BTreeSet where T: SerJson, #### fn ser_json(&self, d: usize, s: &mut SerJsonState) ``` -------------------------------- ### Generic ToString Implementation Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeJsonErr.html Enables converting any type that implements Display into a String. ```rust fn to_string(&self) -> String ``` -------------------------------- ### SerBin Implementation for Vec Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for Vec. ```APIDOC ### impl SerBin for Vec where T: SerBin, #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### DeRon Implementation for f64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for the 64-bit floating-point type. ```rust fn de_ron(s: &mut DeRonState, i: &mut Chars<'_>) -> Result ``` -------------------------------- ### Clone Implementation for TomlErr Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.TomlErr.html Provides methods to create a duplicate of a TomlErr instance or perform copy-assignment from another TomlErr. ```rust fn clone(&self) -> TomlErr ``` ```rust fn clone_from(&mut self, source: &Self) ``` -------------------------------- ### DeRon Implementation for LinkedList Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for `LinkedList`, where `T` must implement `DeRon`. ```rust fn de_ron( s: &mut DeRonState, i: &mut Chars<'_>, ) -> Result, DeRonErr> ``` -------------------------------- ### SerBin Implementation for BTreeSet Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for BTreeSet. ```APIDOC ### impl SerBin for BTreeSet where T: SerBin, #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerRon Implementation for [T; N] Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for arrays. ```APIDOC ### impl SerRon for [T; N] where T: SerRon, #### fn ser_ron(&self, d: usize, s: &mut SerRonState) ``` -------------------------------- ### Default Implementation for DeJsonState Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.DeJsonState.html Provides a default DeJsonState, useful for initializing the deserialization process. ```rust fn default() -> DeJsonState Returns the “default value” for a type. Read more ``` -------------------------------- ### SerBin Implementation for u16 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the 16-bit unsigned integer type. ```APIDOC ### impl SerBin for u16 #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### DeRon Implementation for i64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for the 64-bit signed integer type. ```rust fn de_ron(s: &mut DeRonState, i: &mut Chars<'_>) -> Result ``` -------------------------------- ### SerBin Implementation for u32 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the 32-bit unsigned integer type. ```APIDOC ### impl SerBin for u32 #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### DeRon Implementation for Array [T; N] Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for fixed-size arrays `[T; N]`, where `T` must implement `DeRon` and `N` is the array size. ```rust fn de_ron(o: &mut DeRonState, d: &mut Chars<'_>) -> Result ``` -------------------------------- ### DeRon Implementation for BTreeSet Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for `BTreeSet`, requiring `T` to implement `DeRon` and `Ord`. ```rust fn de_ron( s: &mut DeRonState, i: &mut Chars<'_>, ) -> Result, DeRonErr> ``` -------------------------------- ### SerRon Implementation for bool Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerRon.html Implementation of the SerRon trait for the boolean type. ```APIDOC ### impl SerRon for bool #### fn ser_ron(&self, _d: usize, s: &mut SerRonState) ``` -------------------------------- ### SerJson Implementation for Vec Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for `Vec`. ```APIDOC ### impl SerJson for Vec where T: SerJson, #### fn ser_json(&self, d: usize, s: &mut SerJsonState) ``` -------------------------------- ### SerJson Implementation for bool Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for the `bool` type. ```APIDOC ### impl SerJson for bool #### fn ser_json(&self, _d: usize, s: &mut SerJsonState) ``` -------------------------------- ### Try Convert Toml into U Source: https://docs.rs/nanoserde/0.2.1/nanoserde/enum.Toml.html Attempts to convert a Toml value into a value of type U, returning a Result. ```rust fn try_into(self) -> Result>::Error> ``` -------------------------------- ### SerBin Implementation for LinkedList Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for LinkedList. ```APIDOC ### impl SerBin for LinkedList where T: SerBin, #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerJson Implementation for LinkedList Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerJson.html Implementation of the `SerJson` trait for `LinkedList`. ```APIDOC ### impl SerJson for LinkedList where T: SerJson, #### fn ser_json(&self, d: usize, s: &mut SerJsonState) ``` -------------------------------- ### DeRon Implementation for usize Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for the `usize` type, commonly used for indexing. ```rust fn de_ron(s: &mut DeRonState, i: &mut Chars<'_>) -> Result ``` -------------------------------- ### DeRon Implementation for u64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for the 64-bit unsigned integer type. ```rust fn de_ron(s: &mut DeRonState, i: &mut Chars<'_>) -> Result ``` -------------------------------- ### SerJsonState::field Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.SerJsonState.html Adds a field name to the JSON output with appropriate indentation. ```APIDOC ## pub fn field(&mut self, d: usize, field: &str) Adds a field name to the JSON output, applying indentation based on the depth `d`. ``` -------------------------------- ### indent Source: https://docs.rs/nanoserde/0.2.1/nanoserde/struct.SerRonState.html Increases the indentation level of the serialization output. ```APIDOC ## pub fn indent(&mut self, d: usize) ### Description Increases the indentation level of the serialization output by `d` spaces. ### Parameters - **d** (usize) - The number of indentation levels to add. ``` -------------------------------- ### SerBin Implementation for [T] Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for slices. ```APIDOC ### impl SerBin for [T] where T: SerBin, #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerBin Implementation for HashSet Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for HashSet (requires 'std' feature). ```APIDOC ### impl SerBin for HashSet where T: SerBin, Available on **crate feature`std`** only. #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### SerBin Implementation for u8 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.SerBin.html Implementation of the SerBin trait for the 8-bit unsigned integer type. ```APIDOC ### impl SerBin for u8 #### fn ser_bin(&self, s: &mut Vec) Serialize Self to bytes. ``` -------------------------------- ### DeJson Implementation for f64 Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeJson.html Implementation of the DeJson trait for the f64 floating-point type. ```rust impl DeJson for f64 { fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result } ``` -------------------------------- ### Toml Equality Comparison Source: https://docs.rs/nanoserde/0.2.1/nanoserde/enum.Toml.html Tests for equality between two Toml values. ```rust fn eq(&self, other: &Toml) -> bool ``` -------------------------------- ### DeRon Implementation for Vec Source: https://docs.rs/nanoserde/0.2.1/nanoserde/trait.DeRon.html Provides the `de_ron` implementation for `Vec`, where `T` must implement `DeRon`. ```rust fn de_ron(s: &mut DeRonState, i: &mut Chars<'_>) -> Result, DeRonErr> ```