pub struct LcThreshold<'a> {
pub value: f64,
pub label: &'a str,
pub color: u32,
}Expand description
a threshold: a dashed horizontal line at a value with a label at its right end
Fields§
§value: f64§label: &'a str§color: u320xAARRGGBB, 0 = T_TEXT2
Implementations§
Source§impl<'a> LcThreshold<'a>
impl<'a> LcThreshold<'a>
Sourcepub const fn new(value: f64, label: &'a str) -> LcThreshold<'a>
pub const fn new(value: f64, label: &'a str) -> LcThreshold<'a>
a threshold at value with its label, in T_TEXT2
Sourcepub const fn color(self, c: u32) -> LcThreshold<'a>
pub const fn color(self, c: u32) -> LcThreshold<'a>
the same threshold in a colour
Trait Implementations§
Source§impl<'a> Clone for LcThreshold<'a>
impl<'a> Clone for LcThreshold<'a>
impl<'a> Copy for LcThreshold<'a>
Auto Trait Implementations§
impl<'a> Forget for LcThreshold<'a>
impl<'a> Freeze for LcThreshold<'a>
impl<'a> RefUnwindSafe for LcThreshold<'a>
impl<'a> Send for LcThreshold<'a>
impl<'a> Sync for LcThreshold<'a>
impl<'a> Unpin for LcThreshold<'a>
impl<'a> UnsafeUnpin for LcThreshold<'a>
impl<'a> UnwindSafe for LcThreshold<'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