pub enum SlotArithmeticError {
Underflow(u64, u64),
}Variants§
Trait Implementations§
Source§impl Debug for SlotArithmeticError
impl Debug for SlotArithmeticError
Source§impl<'de> Deserialize<'de> for SlotArithmeticError
impl<'de> Deserialize<'de> for SlotArithmeticError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SlotArithmeticError
impl Display for SlotArithmeticError
Source§impl Error for SlotArithmeticError
impl Error for SlotArithmeticError
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 From<SlotArithmeticError> for EraHistoryError
impl From<SlotArithmeticError> for EraHistoryError
Source§fn from(source: SlotArithmeticError) -> Self
fn from(source: SlotArithmeticError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlotArithmeticError
impl PartialEq for SlotArithmeticError
Source§impl Serialize for SlotArithmeticError
impl Serialize for SlotArithmeticError
impl Eq for SlotArithmeticError
impl StructuralPartialEq for SlotArithmeticError
Auto Trait Implementations§
impl Freeze for SlotArithmeticError
impl RefUnwindSafe for SlotArithmeticError
impl Send for SlotArithmeticError
impl Sync for SlotArithmeticError
impl Unpin for SlotArithmeticError
impl UnsafeUnpin for SlotArithmeticError
impl UnwindSafe for SlotArithmeticError
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> 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