Enum bridgetree::FrontierError
source · pub enum FrontierError {
PositionMismatch {
expected_ommers: usize,
},
MaxDepthExceeded {
depth: u8,
},
}
Expand description
Validation errors that can occur during reconstruction of a Merkle frontier from its constituent parts.
Variants§
PositionMismatch
An error representing that the number of ommers provided in frontier construction does not the expected length of the ommers list given the position.
MaxDepthExceeded
An error representing that the position and/or list of ommers provided to frontier construction would result in a frontier that exceeds the maximum statically allowed depth of the tree.
Trait Implementations§
source§impl Clone for FrontierError
impl Clone for FrontierError
source§fn clone(&self) -> FrontierError
fn clone(&self) -> FrontierError
Returns a copy of the value. Read more
1.0.0 · 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 FrontierError
impl Debug for FrontierError
source§impl PartialEq<FrontierError> for FrontierError
impl PartialEq<FrontierError> for FrontierError
source§fn eq(&self, other: &FrontierError) -> bool
fn eq(&self, other: &FrontierError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.