SYMBOL INDEX (80 symbols across 8 files)
FILE: src/index.js
function search (line 2) | async function search(prompt) {
FILE: src/lexer.rs
type Lexer (line 1) | pub struct Lexer<'a> {
function new (line 6) | pub fn new(content: &'a [char]) -> Self {
function trim_left (line 10) | fn trim_left(&mut self) {
function chop (line 16) | fn chop(&mut self, n: usize) -> &'a [char] {
function chop_while (line 22) | fn chop_while
(&mut self, mut predicate: P) -> &'a [char] where P: FnM...
function next_token (line 30) | pub fn next_token(&mut self) -> Option {
type Item (line 53) | type Item = String;
method next (line 55) | fn next(&mut self) -> Option {
FILE: src/main.rs
function parse_entire_txt_file (line 19) | fn parse_entire_txt_file(file_path: &Path) -> Result {
function parse_entire_pdf_file (line 25) | fn parse_entire_pdf_file(file_path: &Path) -> Result {
function parse_entire_xml_file (line 55) | fn parse_entire_xml_file(file_path: &Path) -> Result {
function parse_entire_file_by_extension (line 76) | fn parse_entire_file_by_extension(file_path: &Path) -> Result {
function save_model_as_json (line 95) | fn save_model_as_json(model: &Model, index_path: &Path) -> Result<(), ()> {
function add_folder_to_model (line 111) | fn add_folder_to_model(dir_path: &Path, model: Arc>, proces...
function usage (line 172) | fn usage(program: &str) {
function entry (line 178) | fn entry() -> Result<(), ()> {
function main (line 244) | fn main() -> ExitCode {
FILE: src/model.rs
type DocFreq (line 7) | type DocFreq = HashMap;
type TermFreq (line 8) | type TermFreq = HashMap;
type Doc (line 10) | pub struct Doc {
type Docs (line 16) | type Docs = HashMap;
type Model (line 19) | pub struct Model {
method remove_document (line 25) | fn remove_document(&mut self, file_path: &Path) {
method requires_reindexing (line 35) | pub fn requires_reindexing(&mut self, file_path: &Path, last_modified:...
method search_query (line 42) | pub fn search_query(&self, query: &[char]) -> Vec<(PathBuf, f32)> {
method add_document (line 60) | pub fn add_document(&mut self, file_path: PathBuf, last_modified: Syst...
function compute_tf (line 87) | fn compute_tf(t: &str, doc: &Doc) -> f32 {
function compute_idf (line 93) | fn compute_idf(t: &str, n: usize, df: &DocFreq) -> f32 {
FILE: src/server.rs
function serve_404 (line 9) | fn serve_404(request: Request) -> io::Result<()> {
function serve_500 (line 13) | fn serve_500(request: Request) -> io::Result<()> {
function serve_400 (line 17) | fn serve_400(request: Request, message: &str) -> io::Result<()> {
function serve_bytes (line 21) | fn serve_bytes(request: Request, bytes: &[u8], content_type: &str) -> io...
function serve_api_search (line 29) | fn serve_api_search(model: Arc>, mut request: Request) -> i...
function serve_api_stats (line 60) | fn serve_api_stats(model: Arc>, request: Request) -> io::Re...
function serve_request (line 89) | fn serve_request(model: Arc>, request: Request) -> io::Resu...
function start (line 111) | pub fn start(address: &str, model: Arc>) -> Result<(), ()> {
FILE: src/snowball/algorithms/english_stemmer.rs
type Context (line 161) | struct Context {
function r_prelude (line 167) | fn r_prelude(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_mark_regions (line 236) | fn r_mark_regions(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_shortv (line 308) | fn r_shortv(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_R1 (line 338) | fn r_R1(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_R2 (line 345) | fn r_R2(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_Step_1a (line 352) | fn r_Step_1a(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_Step_1b (line 419) | fn r_Step_1b(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_Step_1c (line 491) | fn r_Step_1c(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_Step_2 (line 523) | fn r_Step_2(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_Step_3 (line 604) | fn r_Step_3(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_Step_4 (line 646) | fn r_Step_4(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_Step_5 (line 683) | fn r_Step_5(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_exception2 (line 731) | fn r_exception2(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_exception1 (line 743) | fn r_exception1(env: &mut SnowballEnv, context: &mut Context) -> bool {
function r_postlude (line 802) | fn r_postlude(env: &mut SnowballEnv, context: &mut Context) -> bool {
function stem (line 837) | pub fn stem(env: &mut SnowballEnv) -> bool {
FILE: src/snowball/among.rs
type Among (line 3) | pub struct Among(pub &'static str,
FILE: src/snowball/snowball_env.rs
type SnowballEnv (line 5) | pub struct SnowballEnv<'a> {
function create (line 16) | pub fn create(value: &'a str) -> Self {
function get_current (line 28) | pub fn get_current(self) -> Cow<'a, str> {
function set_current (line 32) | pub fn set_current(&mut self, current: &'a str) {
function set_current_s (line 36) | pub fn set_current_s(&mut self, current: String) {
function replace_s (line 40) | fn replace_s(&mut self, bra: i32, ket: i32, s: &str) -> i32 {
function eq_s (line 65) | pub fn eq_s(&mut self, s: &str) -> bool {
function eq_s_b (line 82) | pub fn eq_s_b(&mut self, s: &str) -> bool {
function slice_from (line 96) | pub fn slice_from(&mut self, s: &str) -> bool {
function next_char (line 103) | pub fn next_char(&mut self) {
function previous_char (line 111) | pub fn previous_char(&mut self) {
function hop (line 118) | pub fn hop(&mut self, mut delta: i32) -> bool {
function hop_checked (line 134) | pub fn hop_checked(&mut self, delta: i32) -> bool {
function hop_back (line 138) | pub fn hop_back(&mut self, mut delta: i32) -> bool {
function hop_back_checked (line 154) | pub fn hop_back_checked(&mut self, delta: i32) -> bool {
function in_grouping (line 173) | pub fn in_grouping(&mut self, chars: &[u8], min: u32, max: u32) -> bool {
function in_grouping_b (line 192) | pub fn in_grouping_b(&mut self, chars: &[u8], min: u32, max: u32) -> bool {
function out_grouping (line 213) | pub fn out_grouping(&mut self, chars: &[u8], min: u32, max: u32) -> bool {
function out_grouping_b (line 232) | pub fn out_grouping_b(&mut self, chars: &[u8], min: u32, max: u32) -> bo...
function slice_del (line 256) | pub fn slice_del(&mut self) -> bool {
function insert (line 260) | pub fn insert(&mut self, bra: i32, ket: i32, s: &str) {
function assign_to (line 270) | pub fn assign_to(&mut self) -> String {
function slice_to (line 274) | pub fn slice_to(&mut self) -> String {
function find_among (line 278) | pub fn find_among(&mut self, amongs: &[Among], context: &mut T) ->...
function find_among_b (line 348) | pub fn find_among_b(&mut self, amongs: &[Among], context: &mut T) ...