pub fn raise_error_if_path_points_to_src<T: Debug + Display>(
arg_string_path: &T,
) -> Result<(), String>Expand description
Returns an error if arg_string_path points to src within project. Otherwise, this returns None. If the path is relative, then the
§Arguments
- arg_string_path: string-like
§Examples
let err = match raise_error_if_path_points_to_src( &“/A/B/C” ) { Ok( () ) => {} Err( err ) => { panic!( “{:?}”, err, ) } };