pub struct Contest {
pub template: Template,
pub problems: Vec<Problem>,
pub problem_count: Option<u32>,
pub vars: HashMap<String, String>,
}Fields
template: Templateproblems: Vec<Problem>problem_count: Option<u32>vars: HashMap<String, String>Implementations
sourceimpl Contest
impl Contest
sourcepub fn check_template(&self) -> Option<Vec<MapmErr>>
pub fn check_template(&self) -> Option<Vec<MapmErr>>
Check whether the contest has the proper vars defined, and each problem has the proper problemvars and solutionvars defined
sourcepub fn compile<T: AsRef<Path>>(&self, template_dir: T) -> ContestCompileResults
pub fn compile<T: AsRef<Path>>(&self, template_dir: T) -> ContestCompileResults
Compiles the contest given a template directory to query
Auto Trait Implementations
impl RefUnwindSafe for Contest
impl Send for Contest
impl Sync for Contest
impl Unpin for Contest
impl UnwindSafe for Contest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more