MCPcopy Create free account
hub / github.com/RustCrypto/utils / Error

Enum Error

blobby/src/lib.rs:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23/// Error type used by `blobby` functions
24#[derive(Debug, Eq, PartialEq, Copy, Clone)]
25pub enum Error {
26 /// Decoded VLQ number is too big
27 InvalidVlq,
28 /// Invalid de-duplicated blob index
29 InvalidIndex,
30 /// Unexpected end of data
31 UnexpectedEnd,
32 /// Not enough elements for `BlobNIterator`
33 NotEnoughElements,
34 /// Bad array length was provided to [`parse_as_array`]
35 BadArrayLen,
36}
37
38const NEXT_MASK: u8 = 0b1000_0000;
39const VAL_MASK: u8 = 0b0111_1111;

Callers

nothing calls this directly

Implementers 1

errors.rsinout/src/errors.rs

Calls

no outgoing calls

Tested by

no test coverage detected