diff options
Diffstat (limited to 'vendor/gix-bitmap/src/ewah.rs')
-rw-r--r-- | vendor/gix-bitmap/src/ewah.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/gix-bitmap/src/ewah.rs b/vendor/gix-bitmap/src/ewah.rs index 6958f0441..e2575f905 100644 --- a/vendor/gix-bitmap/src/ewah.rs +++ b/vendor/gix-bitmap/src/ewah.rs @@ -1,13 +1,17 @@ use std::convert::TryInto; +/// pub mod decode { + /// The error returned by [`decode()`][super::decode()]. #[derive(Debug, thiserror::Error)] + #[allow(missing_docs)] pub enum Error { #[error("{}", message)] Corrupt { message: &'static str }, } } +/// Decode `data` as EWAH bitmap. pub fn decode(data: &[u8]) -> Result<(Vec, &[u8]), decode::Error> { use self::decode::Error; use crate::decode; |