pub enum CatalanError {
ZeroOrder,
CatalanOverflow(u64),
FussCatalanOverflow {
order: u64,
n: u64,
},
}Expand description
Errors returned by checked Catalan-family helpers.
Variants§
ZeroOrder
The Fuss-Catalan order must be at least one.
CatalanOverflow(u64)
The Catalan number no longer fits in u128.
FussCatalanOverflow
The Fuss-Catalan number no longer fits in u128.
Trait Implementations§
Source§impl Clone for CatalanError
impl Clone for CatalanError
Source§fn clone(&self) -> CatalanError
fn clone(&self) -> CatalanError
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 CatalanError
impl Debug for CatalanError
Source§impl Display for CatalanError
impl Display for CatalanError
Source§impl Error for CatalanError
impl Error for CatalanError
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 CatalanError
impl PartialEq for CatalanError
impl Copy for CatalanError
impl Eq for CatalanError
impl StructuralPartialEq for CatalanError
Auto Trait Implementations§
impl Freeze for CatalanError
impl RefUnwindSafe for CatalanError
impl Send for CatalanError
impl Sync for CatalanError
impl Unpin for CatalanError
impl UnsafeUnpin for CatalanError
impl UnwindSafe for CatalanError
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