pub trait Answer:
Clone
+ Eq
+ Debug {
type Question: Question;
// Required methods
fn question(&self) -> Self::Question;
fn encode_into(&self, into: &mut Vec<u8>);
fn human(&self) -> String;
}Expand description
One typed answer, and the question it answers.
Required Associated Types§
Required Methods§
Sourcefn encode_into(&self, into: &mut Vec<u8>)
fn encode_into(&self, into: &mut Vec<u8>)
Append this answer’s canonical bytes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".