Crate pokemon_rs

Source

Functions§

get_all
Returns a list of all Pokémons from all generations
get_all_regions
Returns all region names
get_all_types
Returns all Pokemon element types
get_by_id
Returns the Pokémon as a &str that corresponds given id
get_generation
Returns a whole generation as a sorted Vector<&str> based on its given region name
get_id_by_name
Returns the Pokémon’s id that corresponds to a given id
get_region
Returns region name from generation number in released order. Kanto = 1, Johto = 2, Hoenn = 3 …
get_sprite_by_id
Returns a ANSI escape-sequence-based sprite represented as a String of a Pokemon by id
get_sprite_by_name
Returns a ANSI escape-sequence-based sprite represented as a String of a Pokemon by name
get_type_by_id
Returns specific Pokemon element type by id and locale
random
Returns a random Pokémon out of all Pokémon released to this day