#[non_exhaustive]pub enum ItemPart {
Setup,
Turn,
Expect,
Judge,
}Expand description
A part of an item, named exactly as the item file names it.
The four parts partition everything about an item that decides what it
measures. name, description and tags are deliberately outside them:
renaming an item or retagging it changes how a report reads, not what the
run did, and a comparison that broke its pairing over a reworded sentence
would be useless.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Setup
setup — the world the turn starts from, every seeded case and every
seeded state. This is the part a projector under test usually writes.
Turn
turn — what the person did.
Expect
expect — what must be true afterwards.
Judge
judge — which linguistic criteria are graded.
Implementations§
Trait Implementations§
impl Copy for ItemPart
Source§impl<'de> Deserialize<'de> for ItemPart
impl<'de> Deserialize<'de> for ItemPart
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ItemPart
Source§impl Ord for ItemPart
impl Ord for ItemPart
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ItemPart
impl PartialOrd for ItemPart
impl StructuralPartialEq for ItemPart
Auto Trait Implementations§
impl Freeze for ItemPart
impl RefUnwindSafe for ItemPart
impl Send for ItemPart
impl Sync for ItemPart
impl Unpin for ItemPart
impl UnsafeUnpin for ItemPart
impl UnwindSafe for ItemPart
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.