base32-fs 0.1.3

A variant of BASE32 encoding for hashes that are used as file names
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// BASE32 decode error.
///
/// Either the length is wrong or some characters are invalid.
#[derive(Debug)]
pub struct DecodeError;

#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
impl std::error::Error for DecodeError {}

impl core::fmt::Display for DecodeError {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.write_str("BASE32 decode error")
    }
}