pub enum JudgeValue {
Bool(bool),
Number(f64),
}Expand description
The raw value a judge returns: either a boolean or a number, matching the
eval kind. Deserialized untagged from the provider’s value field.
Variants§
Trait Implementations§
Source§impl Clone for JudgeValue
impl Clone for JudgeValue
Source§fn clone(&self) -> JudgeValue
fn clone(&self) -> JudgeValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JudgeValue
Source§impl Debug for JudgeValue
impl Debug for JudgeValue
Source§impl<'de> Deserialize<'de> for JudgeValue
impl<'de> Deserialize<'de> for JudgeValue
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 JudgeValue
impl PartialEq for JudgeValue
Source§fn eq(&self, other: &JudgeValue) -> bool
fn eq(&self, other: &JudgeValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for JudgeValue
impl Serialize for JudgeValue
impl StructuralPartialEq for JudgeValue
Auto Trait Implementations§
impl Freeze for JudgeValue
impl RefUnwindSafe for JudgeValue
impl Send for JudgeValue
impl Sync for JudgeValue
impl Unpin for JudgeValue
impl UnsafeUnpin for JudgeValue
impl UnwindSafe for JudgeValue
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