[][src]Struct acick_util::model::Problem

pub struct Problem { /* fields omitted */ }

Methods

impl Problem[src]

pub fn id(&self) -> &ProblemId[src]

pub fn name(&self) -> &String[src]

pub fn url_name(&self) -> &String[src]

impl Problem[src]

pub fn time_limit(&self) -> Duration[src]

pub fn memory_limit(&self) -> Byte[src]

pub fn compare(&self) -> Compare[src]

impl Problem[src]

pub fn set_samples(&mut self, val: Vec<Sample>) -> &mut Self[src]

impl Problem[src]

pub fn new(
    id: impl Into<ProblemId>,
    name: impl Into<String>,
    url_name: impl Into<String>,
    time_limit: Duration,
    memory_limit: Byte,
    compare: Compare,
    samples: Vec<Sample>
) -> Self
[src]

pub fn n_samples(&self) -> usize[src]

pub fn max_sample_name_len(&self) -> usize[src]

pub fn iter_samples<'a>(
    self,
    sample_name: &'a Option<String>
) -> Box<dyn Iterator<Item = Result<Sample>> + 'a>
[src]

Important traits for SampleIter
pub fn take_samples(self) -> SampleIter[src]

Trait Implementations

impl Clone for Problem[src]

impl Debug for Problem[src]

impl<'de> Deserialize<'de> for Problem[src]

impl Eq for Problem[src]

impl Hash for Problem[src]

impl PartialEq<Problem> for Problem[src]

impl Serialize for Problem[src]

impl StructuralEq for Problem[src]

impl StructuralPartialEq for Problem[src]

Auto Trait Implementations

impl RefUnwindSafe for Problem

impl Send for Problem

impl Sync for Problem

impl Unpin for Problem

impl UnwindSafe for Problem

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.