pub enum ExplanationError {
Entry(ScopeTextError),
ResultLimit,
ContentLimit,
MissingContent,
}Expand description
Invalid explanation request or missing readable source.
Variants§
Entry(ScopeTextError)
Empty, overlong, or control-bearing literal.
ResultLimit
Result count is outside 1..=256.
ContentLimit
Content copy budget is outside 1..=4 MiB.
MissingContent
No document or quick reference was loaded.
Trait Implementations§
Source§impl Clone for ExplanationError
impl Clone for ExplanationError
Source§fn clone(&self) -> ExplanationError
fn clone(&self) -> ExplanationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExplanationError
impl Debug for ExplanationError
Source§impl Display for ExplanationError
impl Display for ExplanationError
impl Eq for ExplanationError
Source§impl Error for ExplanationError
impl Error for ExplanationError
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 ExplanationError
impl PartialEq for ExplanationError
impl StructuralPartialEq for ExplanationError
Auto Trait Implementations§
impl Freeze for ExplanationError
impl RefUnwindSafe for ExplanationError
impl Send for ExplanationError
impl Sync for ExplanationError
impl Unpin for ExplanationError
impl UnsafeUnpin for ExplanationError
impl UnwindSafe for ExplanationError
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