pub struct NoulAnswer { /* private fields */ }Expand description
A yes/no answer.
See the noul primitive.
Implementations§
Trait Implementations§
Source§impl Clone for NoulAnswer
impl Clone for NoulAnswer
impl Copy for NoulAnswer
Source§impl Debug for NoulAnswer
impl Debug for NoulAnswer
Source§impl<'de> Deserialize<'de> for NoulAnswer
impl<'de> Deserialize<'de> for NoulAnswer
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>,
Reads a yes/no answer object. Its type must be noul.
Reloading is supported through a JSON codec (sonic-rs, serde_json);
see ScoreAnswer for what a non-JSON serde format cannot read back.
Source§impl From<NoulAnswer> for Answer
impl From<NoulAnswer> for Answer
Source§fn from(answer: NoulAnswer) -> Self
fn from(answer: NoulAnswer) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NoulAnswer
impl PartialEq for NoulAnswer
Source§impl Serialize for NoulAnswer
impl Serialize for NoulAnswer
impl StructuralPartialEq for NoulAnswer
Auto Trait Implementations§
impl Freeze for NoulAnswer
impl RefUnwindSafe for NoulAnswer
impl Send for NoulAnswer
impl Sync for NoulAnswer
impl Unpin for NoulAnswer
impl UnsafeUnpin for NoulAnswer
impl UnwindSafe for NoulAnswer
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