pub enum Method {
Weak,
Strong,
Average,
Asymmetric,
}
Expand description
Strategies for handling relative tolerance
For detailed reasoning on the pros and cons of the different variants checkout PEP 485.
Variants§
Weak
Relative tolerance is scaled by the larger of the two values (default)
Strong
Relative tolerance is scaled by the smaller of the two values
Average
Relative tolerance is scaled by the average of the two values
Asymmetric
The second value (b
) is used for scaling the tolerance
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
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