pub struct PlotBounds { /* private fields */ }
Expand description
2D bounding box of f64 precision. The range of data values we show.
Implementations§
Source§impl PlotBounds
impl PlotBounds
pub const NOTHING: Self
pub fn from_min_max(min: [f64; 2], max: [f64; 2]) -> Self
pub fn min(&self) -> [f64; 2]
pub fn max(&self) -> [f64; 2]
pub fn is_finite(&self) -> bool
pub fn is_finite_x(&self) -> bool
pub fn is_finite_y(&self) -> bool
pub fn is_valid(&self) -> bool
pub fn is_valid_x(&self) -> bool
pub fn is_valid_y(&self) -> bool
pub fn width(&self) -> f64
pub fn height(&self) -> f64
pub fn center(&self) -> PlotPoint
Trait Implementations§
Source§impl Clone for PlotBounds
impl Clone for PlotBounds
Source§fn clone(&self) -> PlotBounds
fn clone(&self) -> PlotBounds
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PlotBounds
impl Debug for PlotBounds
Source§impl PartialEq for PlotBounds
impl PartialEq for PlotBounds
impl Copy for PlotBounds
impl StructuralPartialEq for PlotBounds
Auto Trait Implementations§
impl Freeze for PlotBounds
impl RefUnwindSafe for PlotBounds
impl Send for PlotBounds
impl Sync for PlotBounds
impl Unpin for PlotBounds
impl UnwindSafe for PlotBounds
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