ConvertingUtils

Trait ConvertingUtils 

Source
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§

Source

fn to_uniform_name(&self) -> Option<String>

Convert a the String to lowercase and replace underscore.

Source

fn negative_to_none(&self) -> Option<i32>

Negative numbers to None Use to set -1 values to None

Source

fn remove_negative(&self) -> Option<Vec<i32>>

Remove negative numbers from the list Use to remove -1 values

Implementations on Foreign Types§

Source§

impl ConvertingUtils for Option<i32>

Source§

impl ConvertingUtils for Option<String>

Source§

impl ConvertingUtils for Option<Vec<i32>>

Implementors§