pub struct View {
pub zoom_x: f64,
pub last_drawn_t: Time,
pub last_drawn_x: u32,
pub min_t: Time,
pub max_t: Time,
pub mode: ViewMode,
}
Expand description
Describes what is currently showing on the graph.
Fields§
§zoom_x: f64
Zoom level, in units of t per x pixel
last_drawn_t: Time
The most recently drawn time value.
last_drawn_x: u32
The most recently drawn x pixel.
min_t: Time
The longest ago time value that is still stored. Note that the oldest data is discarded to keep memory usage bounded.
max_t: Time
The most recent time value.
mode: ViewMode
The display mode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnwindSafe for View
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