Crate gsv_culture_ships

Source
Expand description

In case you ever needed Iain M. Banks’s Culture ship names as a service. Names sourced from the pleasingly extensive Wikipedia article listing them, with a handful of additions.

§Examples

let ship = gsv_culture_ships::random();
println!("Out-of-context problem observed by {}.", ship);

Functions§

count
Returns the total number of available ship names.
random
Return a randomly-selected ship name.
random_n
Return multiple randomly-selected unique ship names.
random_str
Return a randomly-selected ship name, as a static &str.
ships
Return all ship names as a vector of strings. Will allocate.
ships_as_slice
Return all ship names as a slice of &str. Will not allocate.