pub struct ValueBar<'a> { /* private fields */ }Expand description
A symmetrical gauge for a value
Implementations§
Source§impl<'a> ValueBar<'a>
impl<'a> ValueBar<'a>
Sourcepub fn value(self, value: f32) -> Self
pub fn value(self, value: f32) -> Self
Set the value how much this bar should be filled. Should be between [-range..range]
Sourcepub fn label<T>(self, label: T) -> Self
pub fn label<T>(self, label: T) -> Self
Show a label at the zero position of the bar. By default no label is shown. If width of bar is too small, the label won’t be rendered.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ValueBar<'a>
impl<'a> RefUnwindSafe for ValueBar<'a>
impl<'a> Send for ValueBar<'a>
impl<'a> Sync for ValueBar<'a>
impl<'a> Unpin for ValueBar<'a>
impl<'a> UnwindSafe for ValueBar<'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