Trait DecodingResult

Source
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§

Source

fn is_success(&self) -> bool

Returns true if the decoding procedure succeed, false otherwise.

Provided Methods§

Source

fn is_failure(&self) -> bool

Returns false if the decoding procedure succeed, true otherwise.

Implementors§