#[non_exhaustive]pub struct Farthest {
pub distance: LengthInterval,
pub witness: Option<DVec2>,
pub converged: bool,
pub cells: usize,
}Expand description
The greatest distance from a subregion to the nearest target.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.distance: LengthIntervalContains the true maximum over the subregion’s points in the free space.
witness: Option<DVec2>A point of the subregion, in the free space, at least
distance.lower from every target; None only when the budget ran
out before any point of the subregion was sampled.
converged: boolWhether the interval is no wider than the tolerance asked for. When the cell budget runs out first it is still sound, only wider.
cells: usizeCells examined.
Trait Implementations§
impl Copy for Farthest
impl StructuralPartialEq for Farthest
Auto Trait Implementations§
impl Freeze for Farthest
impl RefUnwindSafe for Farthest
impl Send for Farthest
impl Sync for Farthest
impl Unpin for Farthest
impl UnwindSafe for Farthest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more