[−][src]Struct acick_util::model::Problem
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]
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
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]
self,
sample_name: &'a Option<String>
) -> Box<dyn Iterator<Item = Result<Sample>> + 'a>
ⓘImportant traits for SampleIterpub fn take_samples(self) -> SampleIter
[src]
ⓘImportant traits for SampleIter
Trait Implementations
impl Clone for Problem
[src]
impl Debug for Problem
[src]
impl<'de> Deserialize<'de> for Problem
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Problem
[src]
impl Hash for Problem
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Problem> for Problem
[src]
impl Serialize for Problem
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,