pub struct JsonParser;Expand description
Parser for JSON translation files
Implementations§
Source§impl JsonParser
impl JsonParser
pub fn parse_file(path: &Path) -> Result<Vec<TranslationEntry>>
Sourcepub fn parse_file_with_query(
path: &Path,
query: Option<&str>,
) -> Result<Vec<TranslationEntry>>
pub fn parse_file_with_query( path: &Path, query: Option<&str>, ) -> Result<Vec<TranslationEntry>>
Parse JSON file, optionally filtering by query for better performance. If query is provided, uses bottom-up approach: finds exact matches with grep, then traces keys upward WITHOUT parsing the entire JSON structure.
Auto Trait Implementations§
impl Freeze for JsonParser
impl RefUnwindSafe for JsonParser
impl Send for JsonParser
impl Sync for JsonParser
impl Unpin for JsonParser
impl UnwindSafe for JsonParser
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