Crate buddy_up_lib

Crate buddy_up_lib 

Source
Expand description

The Buddy Up Lib contains all the brains to generate pairs from people.

Modules§

history

Structs§

History
Contains history of past pairings
HistoryStats
Saves some stats about the History.
Pairs
People
Abstraction over all the people you may want to pair up. Give it a impl Read, like a file, to get People back.
Person

Enums§

BuddyError
Defines the Errors we might encounter

Functions§

pair
This function does the pairing magic. Given some People and a History of past pairings, it’ll output a new set of Pairs.
print_table
Prints a pretty table of pairs.
save_history
Write the JSON history of this pairing to the given directory