pub trait ConvertingUtils {
// Provided methods
fn to_uniform_name(&self) -> Option<String> { ... }
fn negative_to_none(&self) -> Option<i32> { ... }
fn remove_negative(&self) -> Option<Vec<i32>> { ... }
}Provided Methods§
Sourcefn to_uniform_name(&self) -> Option<String>
fn to_uniform_name(&self) -> Option<String>
Convert a the String to lowercase and replace underscore.
Sourcefn negative_to_none(&self) -> Option<i32>
fn negative_to_none(&self) -> Option<i32>
Negative numbers to None
Use to set -1 values to None
Sourcefn remove_negative(&self) -> Option<Vec<i32>>
fn remove_negative(&self) -> Option<Vec<i32>>
Remove negative numbers from the list
Use to remove -1 values