pub enum NodeDecodeError {
EmptyInput,
UnknownTag {
unknown_tag: u8,
},
NoChildren,
ExtraLeaves {
existing: u16,
leaves: u16,
},
}
Expand description
Error thrown when a Node
fails to be deserialized out of a byte sequence stored in physical
storage, via Node::decode
.
Variants§
EmptyInput
Input is empty.
UnknownTag
The first byte of the input is not a known tag representing one of the variants.
NoChildren
No children found in internal node
ExtraLeaves
Extra leaf bits set
Trait Implementations§
source§impl Debug for NodeDecodeError
impl Debug for NodeDecodeError
source§impl Display for NodeDecodeError
impl Display for NodeDecodeError
source§impl Error for NodeDecodeError
impl Error for NodeDecodeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<NodeDecodeError> for NodeDecodeError
impl PartialEq<NodeDecodeError> for NodeDecodeError
source§fn eq(&self, other: &NodeDecodeError) -> bool
fn eq(&self, other: &NodeDecodeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NodeDecodeError
impl StructuralEq for NodeDecodeError
impl StructuralPartialEq for NodeDecodeError
Auto Trait Implementations§
impl RefUnwindSafe for NodeDecodeError
impl Send for NodeDecodeError
impl Sync for NodeDecodeError
impl Unpin for NodeDecodeError
impl UnwindSafe for NodeDecodeError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.