pub trait DecodingResult: Send + Sync {
// Required method
fn is_success(&self) -> bool;
// Provided method
fn is_failure(&self) -> bool { ... }
}Expand description
An interface for decoder outcome.
Decoding can either succeed or fail. However, it is possible that there are many kind of success and failures.
Required Methods§
Sourcefn is_success(&self) -> bool
fn is_success(&self) -> bool
Returns true if the decoding procedure succeed, false otherwise.
Provided Methods§
Sourcefn is_failure(&self) -> bool
fn is_failure(&self) -> bool
Returns false if the decoding procedure succeed, true otherwise.