Cleaned up docs.
[?]
Jul 2, 2021, 11:09 PM
3K5KIVGX4QICSTMTTBQYUSLS37MJTDSSGTIV3ORRERF46ERGELTACDependencies
- [2]
QMBJ2BAZCan now handle FromStr. - [3]
6ZJX2OQVFirst commit - [4]
VDFODD2FAdded line to BadIndent error. - [5]
N467KW7JRefactored (simplified) errors. - [6]
YJVNXWNHminor - [7]
BRO5BHI2Added val() function to KeyTreeRef.
Change contents
- edit in src/lib.rs at line 1
// #![deny(missing_docs)] - replacement in src/lib.rs at line 7[3.1745]→[3.1745:1792](∅→∅),[3.1792]→[2.266:306](∅→∅),[2.306]→[3.1792:1841](∅→∅),[3.1792]→[3.1792:1841](∅→∅),[3.1841]→[2.307:423](∅→∅),[2.423]→[3.1841:1907](∅→∅),[3.1841]→[3.1841:1907](∅→∅),[3.1907]→[2.424:529](∅→∅),[2.529]→[3.1907:1937](∅→∅),[3.1907]→[3.1907:1937](∅→∅)
pub use crate::error::{bad_first_segment,cannot_resolve_token_with_siblings,empty_path,expected_key_found_keyvalue,expected_keyvalue_found_key,expected_unique_keyvalue_found_multi,expected_unique_keyvalue_found_none,expected_unique_token_found_multi,failed_to_parse_value,first_segment_mismatch,keypath_extends_beyond_keyvalue,keypath_segment_does_not_match_key,no_child_with_segment,};use crate::error::*; - edit in src/lib.rs at line 28
pub (crate) fn segment(&self) -> String {self.segments[self.counter].clone()} - edit in src/lib.rs at line 73
// We could insert position in here as we parse. - replacement in src/lib.rs at line 79
next: Option<usize>, // refers to Vec index for nownext: Option<usize>, - replacement in src/lib.rs at line 85
next: Option<usize>, // refers to Vec index for nownext: Option<usize>, - replacement in src/lib.rs at line 121
// Set the next iteration of the Token to a token with indext token_i.// Set the next iteration of the Token to a token with index token_i. - edit in src/lib.rs at line 233
}}pub (crate) fn assert_top_token_has_no_siblings(&self) -> Result<()> {if self.top_token().next().is_none() {Ok(())} else {Err(cannot_resolve_token_with_siblings(&self.top_token().to_string(),self.top_token().line(),)) - replacement in src/lib.rs at line 382
(token @ Token::Key {..}, false) => {(Token::Key {..}, false) => { - edit in src/lib.rs at line 389
// dbg!(&self);// dbg!(&path);// self.assert_top_token_has_no_siblings()?; - replacement in src/lib.rs at line 417
dbg!();