pub enum ClearanceError {
InvalidInput,
InvalidObstacle,
QueryBudget,
Blocked {
obstacle: u64,
},
}Expand description
Failure of a clearance query or checked height change. This separate type
preserves exhaustive matches on the existing CharacterError.
Variants§
InvalidInput
Invalid shape, feet, motor state, height or candidate limit.
InvalidObstacle
An included obstacle is malformed or unsupported for the queried shape.
QueryBudget
More candidates were visited than the supplied limit. No partial result authorizes a height change, even if a blocker was already encountered.
Blocked
A complete query found penetration beyond the motor’s tolerance.
Trait Implementations§
Source§impl Clone for ClearanceError
impl Clone for ClearanceError
Source§fn clone(&self) -> ClearanceError
fn clone(&self) -> ClearanceError
Returns a duplicate of the value. Read more
1.0.0 · 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 ClearanceError
impl Debug for ClearanceError
Source§impl Display for ClearanceError
impl Display for ClearanceError
Source§impl Error for ClearanceError
impl Error for ClearanceError
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 ClearanceError
impl PartialEq for ClearanceError
impl Copy for ClearanceError
impl Eq for ClearanceError
impl StructuralPartialEq for ClearanceError
Auto Trait Implementations§
impl Freeze for ClearanceError
impl RefUnwindSafe for ClearanceError
impl Send for ClearanceError
impl Sync for ClearanceError
impl Unpin for ClearanceError
impl UnwindSafe for ClearanceError
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