#[repr(u8)]pub enum ThesholdRatio {
TSHD_2 = 0,
TSHD_4 = 1,
TSHD_8 = 2,
TSHD_16 = 3,
TSHD_32 = 4,
TSHD_64 = 5,
TSHD_128 = 6,
TSHD_256 = 7,
}Variants§
TSHD_2 = 0
thresholdh = (baseline + counter) / 2 and thresholdl = (baseline - counter) / 2
TSHD_4 = 1
thresholdh = (baseline + counter) / 4 and thresholdl = (baseline - counter) / 4
TSHD_8 = 2
thresholdh = (baseline + counter) / 8 and thresholdl = (baseline - counter) / 8
TSHD_16 = 3
thresholdh = (baseline + counter) / 16 and thresholdl = (baseline - counter) / 16
TSHD_32 = 4
thresholdh = (baseline + counter) / 32 and thresholdl = (baseline - counter) / 32
TSHD_64 = 5
thresholdh = (baseline + counter) / 64 and thresholdl = (baseline - counter) / 64
TSHD_128 = 6
thresholdh = (baseline + counter) / 128 and thresholdl = (baseline - counter) / 128
TSHD_256 = 7
thresholdh = (baseline + counter) / 256 and thresholdl = (baseline - counter) / 256
Implementations§
Source§impl ThesholdRatio
impl ThesholdRatio
Trait Implementations§
Source§impl Clone for ThesholdRatio
impl Clone for ThesholdRatio
Source§fn clone(&self) -> ThesholdRatio
fn clone(&self) -> ThesholdRatio
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 ThesholdRatio
impl Debug for ThesholdRatio
Source§impl From<ThesholdRatio> for u8
impl From<ThesholdRatio> for u8
Source§fn from(val: ThesholdRatio) -> u8
fn from(val: ThesholdRatio) -> u8
Converts to this type from the input type.
Source§impl From<u8> for ThesholdRatio
impl From<u8> for ThesholdRatio
Source§fn from(val: u8) -> ThesholdRatio
fn from(val: u8) -> ThesholdRatio
Converts to this type from the input type.
Source§impl Ord for ThesholdRatio
impl Ord for ThesholdRatio
Source§fn cmp(&self, other: &ThesholdRatio) -> Ordering
fn cmp(&self, other: &ThesholdRatio) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ThesholdRatio
impl PartialEq for ThesholdRatio
Source§impl PartialOrd for ThesholdRatio
impl PartialOrd for ThesholdRatio
impl Copy for ThesholdRatio
impl Eq for ThesholdRatio
impl StructuralPartialEq for ThesholdRatio
Auto Trait Implementations§
impl Freeze for ThesholdRatio
impl RefUnwindSafe for ThesholdRatio
impl Send for ThesholdRatio
impl Sync for ThesholdRatio
impl Unpin for ThesholdRatio
impl UnwindSafe for ThesholdRatio
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