#[non_exhaustive]pub enum RenderError {
WorkspaceCapacityOverflow {
resource: WorkspaceResource,
required: Option<u128>,
maximum: u128,
stats: SolveStats,
},
WorkspaceExhausted {
resource: WorkspaceResource,
capacity: usize,
required: usize,
stats: SolveStats,
},
WorkspaceGrowthFailed {
resource: WorkspaceResource,
capacity: usize,
required: usize,
stats: SolveStats,
source: TryReserveError,
},
StatisticsOverflow {
counter: SolveCounter,
required: u128,
maximum: u64,
stats: SolveStats,
},
CostDomainViolation,
CostWitnessMismatch,
}Expand description
Failure while solving, visiting, or materializing a prepared document.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WorkspaceCapacityOverflow
A runtime requirement cannot be represented by the workspace.
Fields
§
resource: WorkspaceResourceExhausted resource.
§
stats: SolveStatsStatistics immediately before failure.
WorkspaceExhausted
Fixed mode had insufficient logical capacity.
Fields
§
resource: WorkspaceResourceExhausted resource.
§
stats: SolveStatsStatistics immediately before failure.
WorkspaceGrowthFailed
Growable mode could not allocate a named resource.
Fields
§
resource: WorkspaceResourceResource that could not grow.
§
stats: SolveStatsStatistics immediately before failure.
§
source: TryReserveErrorAllocator failure.
StatisticsOverflow
A deterministic statistic exceeded its counter domain.
Fields
§
counter: SolveCounterCounter that overflowed.
§
stats: SolveStatsStatistics immediately before failure.
CostDomainViolation
A prepared-domain cost invariant was violated.
CostWitnessMismatch
Replaying a selected layout produced a different cost.
Implementations§
Source§impl RenderError
impl RenderError
Sourcepub const fn kind(&self) -> RenderErrorKind
pub const fn kind(&self) -> RenderErrorKind
Returns the stable error category.
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
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()
Auto Trait Implementations§
impl Freeze for RenderError
impl RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
impl UnwindSafe for RenderError
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