Struct const_base::errors::MismatchedOutputLength [−][src]
pub struct MismatchedOutputLength { /* fields omitted */ }
Expand description
When the array returned by decode
isn’t the same length as what the arguments
passed to decode
would produce.
Example
Base 64
use const_base::{Config, DecodeError, MismatchedOutputLength, decode}; const DECODED: Result<[u8; 8], DecodeError> = decode(b"AAAAAA", Config::B64); assert!(matches!( DECODED, Err(DecodeError::MismatchedOutputLength(MismatchedOutputLength{..})) ));
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.