pub enum PrepareError {
Show 13 variants
MessageFormatting,
VisitorFormatting {
item: PreparationItemKind,
},
CauseFormatting {
depth: usize,
},
MultiplePrimaryLabels {
count: usize,
},
EmptySuggestion {
index: usize,
},
ItemTooLarge {
item: PreparationItemKind,
bytes: usize,
limit: usize,
},
ItemLimitExceeded {
attempted: usize,
limit: usize,
},
TextLimitExceeded {
attempted: usize,
limit: usize,
},
DiagnosticCycle {
relation: DiagnosticRelation,
depth: usize,
},
RelatedDepthExceeded {
depth: usize,
limit: usize,
},
DiagnosticSourceDepthExceeded {
depth: usize,
limit: usize,
},
CauseCycle {
depth: usize,
},
CauseDepthExceeded {
depth: usize,
limit: usize,
},
}Variants§
MessageFormatting
VisitorFormatting
Fields
§
item: PreparationItemKindCauseFormatting
MultiplePrimaryLabels
EmptySuggestion
ItemTooLarge
ItemLimitExceeded
TextLimitExceeded
DiagnosticCycle
RelatedDepthExceeded
DiagnosticSourceDepthExceeded
CauseCycle
CauseDepthExceeded
Trait Implementations§
Source§impl Clone for PrepareError
impl Clone for PrepareError
Source§impl Debug for PrepareError
impl Debug for PrepareError
Source§impl Display for PrepareError
impl Display for PrepareError
impl Eq for PrepareError
Source§impl Error for PrepareError
impl Error for PrepareError
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<PrepareError> for DiagnosticRenderError
impl From<PrepareError> for DiagnosticRenderError
Source§fn from(error: PrepareError) -> Self
fn from(error: PrepareError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrepareError
impl PartialEq for PrepareError
impl StructuralPartialEq for PrepareError
Auto Trait Implementations§
impl Forget for PrepareError
impl Freeze for PrepareError
impl Move for PrepareError
impl RefUnwindSafe for PrepareError
impl Send for PrepareError
impl Sync for PrepareError
impl Unpin for PrepareError
impl UnsafeUnpin for PrepareError
impl UnwindSafe for PrepareError
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