pub enum StructureAnalysisError {
RegionNotFound {
region_id: RegionId,
backtrace: Backtrace,
},
EntryRegionNotFound {
backtrace: Backtrace,
},
MaxIterationsReached {
max_iterations: usize,
backtrace: Backtrace,
},
ExpectedConditionNotFound {
backtrace: Backtrace,
},
AstNodeError {
source: Box<AstNodeError>,
backtrace: Backtrace,
},
Other {
message: String,
backtrace: Backtrace,
},
}
Expand description
Error type for structure analysis.
Variants§
RegionNotFound
Error when a region is not found.
Fields
EntryRegionNotFound
Error when the entry region is not found.
MaxIterationsReached
When we have reached the maximum number of iterations.
Fields
ExpectedConditionNotFound
When we’ve expected a condition in this region, but it’s not there.
AstNodeError
Encountered AST node error.
Other
Other errors.
Implementations§
Trait Implementations§
Source§impl Debug for StructureAnalysisError
impl Debug for StructureAnalysisError
Source§impl Display for StructureAnalysisError
impl Display for StructureAnalysisError
Source§impl Error for StructureAnalysisError
impl Error for StructureAnalysisError
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
Source§fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
🔬This is a nightly-only experimental API. (
error_generic_member_access
)Provides type-based access to context intended for error reports. 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()
Auto Trait Implementations§
impl !Freeze for StructureAnalysisError
impl RefUnwindSafe for StructureAnalysisError
impl Send for StructureAnalysisError
impl Sync for StructureAnalysisError
impl Unpin for StructureAnalysisError
impl UnwindSafe for StructureAnalysisError
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