pub fn get_templates_of_type(name_type: NameType) -> Vec<NameTemplate<'static>>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
Expand description

Returns a Vec of templates matching specified type

use rust_nickname_generater::get_templates_of_type;
use rust_nickname_generater::template_struct::{NameType, NameTemplate};

let templates: Vec<NameTemplate> = get_templates_of_type(NameType::Function);

println!("{:?}", templates.first());