pub enum PatriciaProofError {
Unlinked {
index: usize,
},
Incomplete,
TrailingNodes {
index: usize,
},
BranchAtKeyEnd {
index: usize,
},
}Variants§
Unlinked
index 番目のノードのハッシュが、根か1つ前の枝の子と合わない
Incomplete
最後の枝の、キーの次のニブルに子があるのに、その先のノードがない
TrailingNodes
答えが出たあとに、index 番目からノードが余っている
BranchAtKeyEnd
index 番目の枝で、キーのニブルを使い切っている
Trait Implementations§
Source§impl Clone for PatriciaProofError
impl Clone for PatriciaProofError
Source§fn clone(&self) -> PatriciaProofError
fn clone(&self) -> PatriciaProofError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PatriciaProofError
impl Debug for PatriciaProofError
Source§impl Display for PatriciaProofError
impl Display for PatriciaProofError
impl Eq for PatriciaProofError
Source§impl Error for PatriciaProofError
impl Error for PatriciaProofError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 for PatriciaProofError
impl PartialEq for PatriciaProofError
impl StructuralPartialEq for PatriciaProofError
Auto Trait Implementations§
impl Freeze for PatriciaProofError
impl RefUnwindSafe for PatriciaProofError
impl Send for PatriciaProofError
impl Sync for PatriciaProofError
impl Unpin for PatriciaProofError
impl UnsafeUnpin for PatriciaProofError
impl UnwindSafe for PatriciaProofError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more