#[non_exhaustive]pub enum OverlayRefusal {
Invalid(OverlayError),
BudgetExceeded {
needed: usize,
budget: usize,
},
}Expand description
Why a budgeted overlay gave no result.
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.
Invalid(OverlayError)
An operand failed the overlay’s checks, as crate::overlay_with
and crate::union_soup_with refuse it.
BudgetExceeded
The subdivision would hold more than the memory budget: refused
before allocating past it. needed is what had been charged when
the budget was passed, a lower bound on what the operation needs;
budget is the caller’s.
Trait Implementations§
Source§impl Clone for OverlayRefusal
impl Clone for OverlayRefusal
Source§fn clone(&self) -> OverlayRefusal
fn clone(&self) -> OverlayRefusal
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 OverlayRefusal
impl Debug for OverlayRefusal
Source§impl Display for OverlayRefusal
impl Display for OverlayRefusal
impl Eq for OverlayRefusal
Source§impl Error for OverlayRefusal
impl Error for OverlayRefusal
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<OverlayError> for OverlayRefusal
impl From<OverlayError> for OverlayRefusal
Source§fn from(error: OverlayError) -> Self
fn from(error: OverlayError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OverlayRefusal
impl PartialEq for OverlayRefusal
impl StructuralPartialEq for OverlayRefusal
Auto Trait Implementations§
impl Freeze for OverlayRefusal
impl RefUnwindSafe for OverlayRefusal
impl Send for OverlayRefusal
impl Sync for OverlayRefusal
impl Unpin for OverlayRefusal
impl UnsafeUnpin for OverlayRefusal
impl UnwindSafe for OverlayRefusal
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