pub fn find(contents :&str, query :char) -> Vec<u32> {
    
    let mut result :Vec<u32> = Vec::new();
    
    for (i, c) in contents.chars().enumerate() {
        if c == query {
            result.push(i as u32);
        }
    }

    return result;
}
/*
Find 
this function will find the indexes/positions of a certain char in a string

args:
    - contents (String) -> the contents of the file in string form
    - query (char)      -> the char to search for

returns:
    - vec<u32> -> a vector containing all the posiotions of the chars.

*/
Find
this function will find the indexes/positions of a certain char in a string

contents (String) -> the contents of the file in string form
query (char)      -> the char to search for

vec -> a vector containing all the posiotions of the chars.
Find this function will find the indexes / positions of a certain char in a string contents ( String ) - > the contents of the file in string form query ( char ) - > the char to search for vec - > a vector containing all the posiotions of the chars .
pub fn find(contents :&str, query :char) -> Vec<u32> {
    let mut result :Vec<u32> = Vec::new();
    for (i, c) in contents.chars().enumerate() {
        if c == query {
            result.push(i as u32);
        }
    }
    return result;
}
pub fn find ( contents : & str , query : char ) -> Vec < u32 > { let mut result : Vec < u32 > = Vec :: new ( ) ; for ( i , c ) in contents . chars ( ) . enumerate ( ) { if c == query { result . push ( i as u32 ) ; } } return result ; }
Find
this function will find the indexes/positions of a certain char in a string
Find this function will find the indexes / positions of a certain char in a string
contents
&str
query
char
contents
&str
query
char