[][src]Trait believer::decoders::DecodingResult

pub trait DecodingResult: Send + Sync {
    fn is_success(&self) -> bool;

    fn is_failure(&self) -> bool { ... }
}

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

fn is_success(&self) -> bool

Returns true if the decoding procedure succeed, false otherwise.

Loading content...

Provided methods

fn is_failure(&self) -> bool

Returns false if the decoding procedure succeed, true otherwise.

Loading content...

Implementors

impl DecodingResult for ErasureResult[src]

Loading content...