pub enum FormattingError {
RecursionLimitExceeded {
depth: usize,
limit: usize,
},
UnsupportedExpression {
expr_type: String,
target_format: MathLanguage,
},
TooManyTerms {
count: usize,
limit: usize,
},
InvalidMathConstruct {
reason: String,
},
MemoryLimitExceeded,
SerializationError {
message: String,
},
}Expand description
Structured error type for formatting operations
Variants§
RecursionLimitExceeded
Recursion depth limit exceeded during formatting
UnsupportedExpression
Expression type not supported for target format
TooManyTerms
Too many terms in operation (performance limit)
InvalidMathConstruct
Invalid mathematical construct
MemoryLimitExceeded
Memory limit exceeded
SerializationError
Serialization error (for JSON format)
Trait Implementations§
Source§impl Clone for FormattingError
impl Clone for FormattingError
Source§fn clone(&self) -> FormattingError
fn clone(&self) -> FormattingError
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 FormattingError
impl Debug for FormattingError
Source§impl Display for FormattingError
impl Display for FormattingError
Source§impl Error for FormattingError
impl Error for FormattingError
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 FormattingError
impl PartialEq for FormattingError
impl StructuralPartialEq for FormattingError
Auto Trait Implementations§
impl Freeze for FormattingError
impl RefUnwindSafe for FormattingError
impl Send for FormattingError
impl Sync for FormattingError
impl Unpin for FormattingError
impl UnwindSafe for FormattingError
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§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