pub struct AxisSpan {
pub min: f64,
pub max: f64,
pub pmin: f64,
pub pmax: f64,
}Expand description
A trained axis domain together with the normalized panel positions of its
endpoints. pmin/pmax are scale.map(min)/scale.map(max), so a coord can
invert the (linear, expanded) scale mapping exactly: given a normalized
position n, the data value is min + (n - pmin)/(pmax - pmin) * (max - min).
Fields§
§min: f64§max: f64§pmin: f64§pmax: f64Trait Implementations§
Auto Trait Implementations§
impl Freeze for AxisSpan
impl RefUnwindSafe for AxisSpan
impl Send for AxisSpan
impl Sync for AxisSpan
impl Unpin for AxisSpan
impl UnsafeUnpin for AxisSpan
impl UnwindSafe for AxisSpan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more