Function u_interface::get_problem
source · [−]Expand description
Returns the problem with number num, or an empty struct if it
does not exist. This function is async, that means it has to be
called inside an async function/method or using tokio::Runtime.block_on().
Arguments
num- An unsigned, 16 bit number indicating the number of the problem.
Examples
// Returns the 462nd problem
let problem: Problem = get_problem(462).await?;