#[non_exhaustive]pub struct Plot {
pub range: RangeInclusive<f32>,
pub height: f32,
pub selected: Option<usize>,
}Expand description
How Ui::plot draws its values.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.range: RangeInclusive<f32>The values at its bottom and top: a value outside is drawn at the edge; a reversed range is swapped, and one with no width, or a NaN bound, draws every value in the middle.
height: f32Its height, in UI units: one that is not finite or not above 0 is the default, 30.
selected: Option<usize>The value marked with a line across it, if any.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Plot
Auto Trait Implementations§
impl Forget for Plot
impl Freeze for Plot
impl Move for Plot
impl RefUnwindSafe for Plot
impl Send for Plot
impl Sync for Plot
impl Unpin for Plot
impl UnsafeUnpin for Plot
impl UnwindSafe for Plot
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