pub enum Validity {
Valid,
Invalid,
Unknown,
}Expand description
The outcome of a validity check.
Planners accept only Validity::Valid. Validity::Unknown is rejected like
Validity::Invalid: a check that fails to prove validity never yields a valid state or
edge. This is the conservative default that reachable-set based edge checks rely on.
Variants§
Valid
Proven valid: collision-free and within all constraints.
Invalid
Proven invalid.
Unknown
The checker could not decide, for example because an over-approximation touches an obstacle. Treated as invalid by planners.
Implementations§
Source§impl Validity
impl Validity
Sourcepub const fn is_valid(self) -> bool
pub const fn is_valid(self) -> bool
Whether a planner may accept this result. Only Validity::Valid is accepted.
Sourcepub const fn and(self, other: Self) -> Self
pub const fn and(self, other: Self) -> Self
Combines two results for a compound check: Validity::Invalid dominates
Validity::Unknown, which dominates Validity::Valid.
Trait Implementations§
impl Copy for Validity
impl Eq for Validity
impl StructuralPartialEq for Validity
Auto Trait Implementations§
impl Forget for Validity
impl Freeze for Validity
impl Move for Validity
impl RefUnwindSafe for Validity
impl Send for Validity
impl Sync for Validity
impl Unpin for Validity
impl UnsafeUnpin for Validity
impl UnwindSafe for Validity
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