pub struct AxisView<'a> { /* private fields */ }Expand description
Borrowed physical coordinates; sigma labels do not replace or infer these data.
Implementations§
Source§impl<'a> AxisView<'a>
impl<'a> AxisView<'a>
pub fn kind(self) -> AxisKind
pub fn semantics(self) -> SampleSemantics
pub fn quantity(self) -> Quantity
pub fn sigma(self) -> SigmaInterpretation
pub fn response_metadata_id(self) -> Option<u32>
pub fn source_block(self) -> Block<'a>
pub fn sample_count(self) -> u64
pub fn coordinate_count(self) -> u64
pub fn coordinates(self) -> Coordinates<'a> ⓘ
pub fn coordinate(self, index: u64) -> Result<f64, Error>
pub fn remaining_work(self) -> u64
Sourcepub fn conversion_order(self, target: AxisKind) -> AxisOrder
pub fn conversion_order(self, target: AxisKind) -> AxisOrder
Coordinate transforms reverse frequency/wavelength order. This map is explicit; originals are never reordered, resampled or overwritten.
pub fn source_coordinate_index_for_ascending( self, target: AxisKind, target_index: u64, ) -> Result<u64, Error>
Sourcepub fn source_sample_index_for_ascending(
self,
target: AxisKind,
target_index: u64,
) -> Result<u64, Error>
pub fn source_sample_index_for_ascending( self, target: AxisKind, target_index: u64, ) -> Result<u64, Error>
Sample values have N elements even when bin edges have N+1.
pub fn ascending_derived_coordinate( self, target: AxisKind, index: u64, ) -> Result<f64, Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AxisView<'a>
impl<'a> RefUnwindSafe for AxisView<'a>
impl<'a> Send for AxisView<'a>
impl<'a> Sync for AxisView<'a>
impl<'a> Unpin for AxisView<'a>
impl<'a> UnsafeUnpin for AxisView<'a>
impl<'a> UnwindSafe for AxisView<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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