Enum miden_objects::ChainMmrError
source · pub enum ChainMmrError {
BlockNumTooBig {
chain_length: usize,
block_num: u32,
},
DuplicateBlock {
block_num: u32,
},
UntrackedBlock {
block_num: u32,
},
}Variants§
Implementations§
source§impl ChainMmrError
impl ChainMmrError
pub fn block_num_too_big(chain_length: usize, block_num: u32) -> Self
pub fn duplicate_block(block_num: u32) -> Self
pub fn untracked_block(block_num: u32) -> Self
Trait Implementations§
source§impl Clone for ChainMmrError
impl Clone for ChainMmrError
source§fn clone(&self) -> ChainMmrError
fn clone(&self) -> ChainMmrError
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 ChainMmrError
impl Debug for ChainMmrError
source§impl Display for ChainMmrError
impl Display for ChainMmrError
source§impl Error for ChainMmrError
impl Error for ChainMmrError
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 for ChainMmrError
impl PartialEq for ChainMmrError
source§fn eq(&self, other: &ChainMmrError) -> bool
fn eq(&self, other: &ChainMmrError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ChainMmrError
impl StructuralPartialEq for ChainMmrError
Auto Trait Implementations§
impl Freeze for ChainMmrError
impl RefUnwindSafe for ChainMmrError
impl Send for ChainMmrError
impl Sync for ChainMmrError
impl Unpin for ChainMmrError
impl UnwindSafe for ChainMmrError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)