pub struct RangeIndexData {
pub start: f64,
pub end: f64,
pub step: f64,
pub step_count: NonZeroUsize,
pub dimension: Dimension,
pub display_label: Option<String>,
pub display_scale: f64,
}Expand description
Data for a concrete numeric range index (e.g., linspace(0.0 s, 100.0 s, step: 0.1 s)).
Fields§
§start: f64§end: f64§step: f64§step_count: NonZeroUsizeValidated number of inclusive range steps.
dimension: Dimension§display_label: Option<String>Display unit label (e.g., "s") for formatting step values.
display_scale: f64Scale factor from SI to display unit: display_value = si_value / scale.
Implementations§
Source§impl RangeIndexData
impl RangeIndexData
Sourcepub fn step_value(&self, i: usize) -> f64
pub fn step_value(&self, i: usize) -> f64
Returns the SI value at step i.
Sourcepub const fn step_count(&self) -> usize
pub const fn step_count(&self) -> usize
Returns the number of steps in this range.
Trait Implementations§
Source§impl Clone for RangeIndexData
impl Clone for RangeIndexData
Source§fn clone(&self) -> RangeIndexData
fn clone(&self) -> RangeIndexData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RangeIndexData
impl RefUnwindSafe for RangeIndexData
impl Send for RangeIndexData
impl Sync for RangeIndexData
impl Unpin for RangeIndexData
impl UnsafeUnpin for RangeIndexData
impl UnwindSafe for RangeIndexData
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