pub enum TmTestVectorError {
TreeSizeMismatch,
RootIndexMismatch,
LeftIndexMismatch,
RightIndexMismatch,
ParentIndexMismatch,
SiblingIndexMismatch,
}Available on (32-bit or 64-bit) and (crate features
test-utils) only.Expand description
TreeMath test vector error
Variants§
TreeSizeMismatch
The computed tree size doesn’t match the one in the test vector.
RootIndexMismatch
The computed root index doesn’t match the one in the test vector.
LeftIndexMismatch
A computed left child index doesn’t match the one in the test vector.
RightIndexMismatch
A computed right child index doesn’t match the one in the test vector.
ParentIndexMismatch
A computed parent index doesn’t match the one in the test vector.
SiblingIndexMismatch
A computed sibling index doesn’t match the one in the test vector.
Trait Implementations§
Source§impl Clone for TmTestVectorError
impl Clone for TmTestVectorError
Source§fn clone(&self) -> TmTestVectorError
fn clone(&self) -> TmTestVectorError
Returns a duplicate 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 TmTestVectorError
impl Debug for TmTestVectorError
Source§impl Display for TmTestVectorError
impl Display for TmTestVectorError
Source§impl Error for TmTestVectorError
impl Error for TmTestVectorError
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 TmTestVectorError
impl PartialEq for TmTestVectorError
impl Eq for TmTestVectorError
impl StructuralPartialEq for TmTestVectorError
Auto Trait Implementations§
impl Freeze for TmTestVectorError
impl RefUnwindSafe for TmTestVectorError
impl Send for TmTestVectorError
impl Sync for TmTestVectorError
impl Unpin for TmTestVectorError
impl UnwindSafe for TmTestVectorError
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more