pub enum ShellTolerance {
Absolute(f64),
Relative(f64),
}Expand description
Tolerance policy for selecting a squared-distance shell.
Variants§
Absolute(f64)
Accept |d² - target²| <= epsilon.
Relative(f64)
Accept |d² - target²| <= epsilon * |target²|.
Trait Implementations§
Source§impl Clone for ShellTolerance
impl Clone for ShellTolerance
Source§fn clone(&self) -> ShellTolerance
fn clone(&self) -> ShellTolerance
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 ShellTolerance
Source§impl Debug for ShellTolerance
impl Debug for ShellTolerance
Source§impl PartialEq for ShellTolerance
impl PartialEq for ShellTolerance
impl StructuralPartialEq for ShellTolerance
Auto Trait Implementations§
impl Freeze for ShellTolerance
impl RefUnwindSafe for ShellTolerance
impl Send for ShellTolerance
impl Sync for ShellTolerance
impl Unpin for ShellTolerance
impl UnsafeUnpin for ShellTolerance
impl UnwindSafe for ShellTolerance
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