pub enum ExerciseKind {
FunctionWriting,
}Expand description
The kind of exercise a lesson poses.
An enum, not a string, so an unknown kind is rejected at the parse boundary rather than carried downstream (§1.2). The R package authors only function-writing exercises today; new variants are added as the runner gains support for them (Slice 9).
Variants§
FunctionWriting
Write a function to a specification.
Trait Implementations§
Source§impl Clone for ExerciseKind
impl Clone for ExerciseKind
Source§fn clone(&self) -> ExerciseKind
fn clone(&self) -> ExerciseKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExerciseKind
impl Debug for ExerciseKind
Source§impl<'de> Deserialize<'de> for ExerciseKind
impl<'de> Deserialize<'de> for ExerciseKind
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
Source§impl PartialEq for ExerciseKind
impl PartialEq for ExerciseKind
Source§impl Serialize for ExerciseKind
impl Serialize for ExerciseKind
impl Eq for ExerciseKind
impl StructuralPartialEq for ExerciseKind
Auto Trait Implementations§
impl Freeze for ExerciseKind
impl RefUnwindSafe for ExerciseKind
impl Send for ExerciseKind
impl Sync for ExerciseKind
impl Unpin for ExerciseKind
impl UnwindSafe for ExerciseKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.