Trait FSTParser
Source pub trait FSTParser {
// Required methods
fn text(
&mut self,
text: &str,
parse_result: &mut ParseResult,
book_id: i32,
) -> Result<(), Error>;
fn reset(&mut self);
fn start_node(&mut self, text: &str);
fn attribute(
&mut self,
attribute_name: &str,
attribute_value: &str,
parse_result: &mut ParseResult,
book_id: i32,
) -> Result<(), Error>;
fn end_node(&mut self, node_name: &str);
fn is_found(&self) -> bool;
fn has_results(&self) -> bool;
fn get_parse_type(&self) -> ParseType;
fn get_result(&self) -> Result<&ParseItemResult, Error>;
fn get_files(&self) -> Result<Vec<GutenbergFileEntry>, Error>;
}