pub struct AnyAngleSearchRequest {
pub start: Point2,
pub goal: Point2,
pub budget: SearchBudget,
}Expand description
Start and goal endpoints for an any-angle grid search.
Validity (grid-aligned free vertices) is checked at search time, not construction.
Optional SearchBudget caps expansions and/or wall-clock time; default is unlimited.
Fields§
§start: Point2Continuous-space start (canonicalized to a grid vertex at search time).
goal: Point2Continuous-space goal (canonicalized to a grid vertex at search time).
budget: SearchBudgetOptional expansion / wall-clock caps for this query (default unlimited).
Implementations§
Source§impl AnyAngleSearchRequest
impl AnyAngleSearchRequest
Sourcepub fn new(start: Point2, goal: Point2) -> Self
pub fn new(start: Point2, goal: Point2) -> Self
Pairs continuous start and goal with an unlimited budget; validity is checked at search time.
Sourcepub const fn with_budget(self, budget: SearchBudget) -> Self
pub const fn with_budget(self, budget: SearchBudget) -> Self
Returns a copy of this request with the given budget.
Trait Implementations§
Source§impl Clone for AnyAngleSearchRequest
impl Clone for AnyAngleSearchRequest
Source§fn clone(&self) -> AnyAngleSearchRequest
fn clone(&self) -> AnyAngleSearchRequest
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 AnyAngleSearchRequest
Source§impl Debug for AnyAngleSearchRequest
impl Debug for AnyAngleSearchRequest
Source§impl PartialEq for AnyAngleSearchRequest
impl PartialEq for AnyAngleSearchRequest
impl StructuralPartialEq for AnyAngleSearchRequest
Auto Trait Implementations§
impl Freeze for AnyAngleSearchRequest
impl RefUnwindSafe for AnyAngleSearchRequest
impl Send for AnyAngleSearchRequest
impl Sync for AnyAngleSearchRequest
impl Unpin for AnyAngleSearchRequest
impl UnsafeUnpin for AnyAngleSearchRequest
impl UnwindSafe for AnyAngleSearchRequest
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