pub struct SelectiveParser { /* private fields */ }
Expand description
High-performance selective parser for extracting specific fields
Implementations§
Source§impl SelectiveParser
impl SelectiveParser
Sourcepub fn new(target_fields: Vec<String>) -> Self
pub fn new(target_fields: Vec<String>) -> Self
Create a new selective parser targeting specific fields
Sourcepub fn for_release_metadata() -> Self
pub fn for_release_metadata() -> Self
Create a parser for release metadata extraction
Sourcepub fn case_sensitive(self, case_sensitive: bool) -> Self
pub fn case_sensitive(self, case_sensitive: bool) -> Self
Set case sensitivity for field matching
Sourcepub fn extract_isrcs<R: BufRead>(
&mut self,
reader: R,
) -> Result<Vec<String>, ParseError>
pub fn extract_isrcs<R: BufRead>( &mut self, reader: R, ) -> Result<Vec<String>, ParseError>
Extract ISRCs from XML with maximum performance
Sourcepub fn extract_fields<R: BufRead>(
&mut self,
reader: R,
) -> Result<SelectiveResult, ParseError>
pub fn extract_fields<R: BufRead>( &mut self, reader: R, ) -> Result<SelectiveResult, ParseError>
Extract all targeted fields from XML
Sourcepub fn extract_isrcs_fast<R: BufRead>(
&mut self,
reader: R,
) -> Result<Vec<String>, ParseError>
pub fn extract_isrcs_fast<R: BufRead>( &mut self, reader: R, ) -> Result<Vec<String>, ParseError>
Ultra-fast ISRC extraction using pattern matching (10x+ faster than XML parsing)
Trait Implementations§
Source§impl Clone for SelectiveParser
impl Clone for SelectiveParser
Source§fn clone(&self) -> SelectiveParser
fn clone(&self) -> SelectiveParser
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SelectiveParser
impl RefUnwindSafe for SelectiveParser
impl Send for SelectiveParser
impl Sync for SelectiveParser
impl Unpin for SelectiveParser
impl UnwindSafe for SelectiveParser
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