pub enum ValidateError {
SlotConflict {
a: ValueId,
b: ValueId,
slot: SlotId,
},
UndersizedSlot {
value: ValueId,
slot: SlotId,
needed: usize,
capacity: usize,
},
MissingAssignment {
value: ValueId,
},
UnknownSlot {
value: ValueId,
slot: SlotId,
},
ViewOutlivesSource {
view: ValueId,
source_owner: ValueId,
view_use: usize,
source_end: usize,
},
Cycle,
}Expand description
A violated correctness invariant found by crate::validate.
Variants§
SlotConflict
Two values with overlapping live intervals were assigned the same slot — one would clobber the other’s still-live data.
UndersizedSlot
A value is assigned to a slot too small to hold it.
MissingAssignment
A buffer owner has no slot assignment in the plan.
UnknownSlot
A value is assigned to a slot id that does not exist in the plan.
ViewOutlivesSource
A zero-copy view outlives the source buffer it aliases (fold error): the source could be recycled while the view still points into it.
Cycle
The graph became unschedulable between planning and validation.
Trait Implementations§
Source§impl Clone for ValidateError
impl Clone for ValidateError
Source§fn clone(&self) -> ValidateError
fn clone(&self) -> ValidateError
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 moreimpl Copy for ValidateError
Source§impl Debug for ValidateError
impl Debug for ValidateError
Source§impl Display for ValidateError
impl Display for ValidateError
impl Eq for ValidateError
Source§impl Error for ValidateError
impl Error for ValidateError
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 ValidateError
impl PartialEq for ValidateError
impl StructuralPartialEq for ValidateError
Auto Trait Implementations§
impl Freeze for ValidateError
impl RefUnwindSafe for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl UnsafeUnpin for ValidateError
impl UnwindSafe for ValidateError
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