pub struct Threshold<'a> {
pub fraction: f64,
pub label: &'a str,
}Expand description
Explicit normalized threshold and complete description. Its text is placed in a separate row below the track, in caller order, never over a tiny fill. Duplicate/unsorted thresholds are allowed; the caller owns their meaning.
Fields§
§fraction: f64§label: &'a strTrait Implementations§
impl<'a> Copy for Threshold<'a>
impl<'a> StructuralPartialEq for Threshold<'a>
Auto Trait Implementations§
impl<'a> Freeze for Threshold<'a>
impl<'a> RefUnwindSafe for Threshold<'a>
impl<'a> Send for Threshold<'a>
impl<'a> Sync for Threshold<'a>
impl<'a> Unpin for Threshold<'a>
impl<'a> UnwindSafe for Threshold<'a>
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