pub enum StockSimError {
BudgetExceeded {
requested_cell: f64,
columns: u64,
max_columns: u64,
cell_that_fits: f64,
},
RestStockMissing,
OpenStockMesh {
column: [u32; 2],
},
InvalidInput(String),
}Expand description
Why a stock could not become a grid.
Variants§
BudgetExceeded
The requested cell would need more columns than the budget allows.
cell_that_fits is the smallest cell within budget.
RestStockMissing
Stock::FromRest needs the previous setup’s simulated stock.
OpenStockMesh
A FromSolid stock mesh is open at some column (odd crossing count on
the centre ray and on every jittered ray).
InvalidInput(String)
Non-finite or non-positive cell / empty stock bounds.
Trait Implementations§
Source§impl Clone for StockSimError
impl Clone for StockSimError
Source§impl Debug for StockSimError
impl Debug for StockSimError
Source§impl Display for StockSimError
impl Display for StockSimError
Source§impl Error for StockSimError
impl Error for StockSimError
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 StockSimError
impl PartialEq for StockSimError
impl StructuralPartialEq for StockSimError
Auto Trait Implementations§
impl Forget for StockSimError
impl Freeze for StockSimError
impl Move for StockSimError
impl RefUnwindSafe for StockSimError
impl Send for StockSimError
impl Sync for StockSimError
impl Unpin for StockSimError
impl UnsafeUnpin for StockSimError
impl UnwindSafe for StockSimError
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