Function raise_error_if_path_points_to_main_rs
Source pub fn raise_error_if_path_points_to_main_rs<T: Debug + Display>(
arg_string_path: &T,
) -> Result<(), String>
Expand description
Returns an error if arg_string_path points at main.rs in the project.
Otherwise, this returns None.
§Arguments
- arg_string_path: string-like
§Examples
let err = match raise_error_if_path_points_to_main_rs( &“/A/B/C” ) {
Ok( ()) ) => {}
Err( err ) => { panic!( “{:?}”, err, ) }
};