raise_error_if_path_points_to_project_root

Function raise_error_if_path_points_to_project_root 

Source
pub fn raise_error_if_path_points_to_project_root<T: Display>(
    arg_string_path: &T,
) -> Result<(), String>
Expand description

Returns an error if arg_string_path points to project directory. Otherwise, this returns None.

§Arguments

  • arg_string_path: string-like

§Examples

let err = match raise_error_if_path_points_to_project_root( &“/A/B/C” ) { Ok( () ) => {}, Err( err ) => { panic!( “{:?}”, err, ) } };