pub struct ObservableStateBatch {
pub positions_ecef_m: Vec<[f64; 3]>,
pub clocks_s: Vec<Option<f64>>,
pub element_results: Vec<Result<(), ObservablesError>>,
}Expand description
Contiguous output arrays for a batched satellite-state query.
Element i of positions_ecef_m, clocks_s, and element_results belongs
to input satellite i. When element_results[i] is Ok(()), the position
and clock entries are the exact ObservableState returned by the scalar
evaluator. When it is Err, positions_ecef_m[i] is
OBSERVABLE_STATE_MISSING_POSITION_ECEF_M and clocks_s[i] is None.
Fields§
§positions_ecef_m: Vec<[f64; 3]>Satellite ECEF positions in meters, one entry per input element.
clocks_s: Vec<Option<f64>>Satellite clock offsets in seconds, one entry per input element.
element_results: Vec<Result<(), ObservablesError>>Per-element scalar result, preserving the exact scalar error on failure.
Implementations§
Source§impl ObservableStateBatch
impl ObservableStateBatch
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Build an empty batch with capacity for capacity elements.
Sourcepub fn element(
&self,
index: usize,
) -> Option<Result<ObservableState, &ObservablesError>>
pub fn element( &self, index: usize, ) -> Option<Result<ObservableState, &ObservablesError>>
Reconstruct element index as the scalar state result.
Returns None when index is out of range.
Sourcepub fn element_status(
&self,
index: usize,
) -> Option<ObservableStateElementStatus>
pub fn element_status( &self, index: usize, ) -> Option<ObservableStateElementStatus>
Status category for element index.
Returns None when index is out of range.
Trait Implementations§
Source§impl Clone for ObservableStateBatch
impl Clone for ObservableStateBatch
Source§fn clone(&self) -> ObservableStateBatch
fn clone(&self) -> ObservableStateBatch
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObservableStateBatch
impl Debug for ObservableStateBatch
Source§impl PartialEq for ObservableStateBatch
impl PartialEq for ObservableStateBatch
Source§fn eq(&self, other: &ObservableStateBatch) -> bool
fn eq(&self, other: &ObservableStateBatch) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ObservableStateBatch
Auto Trait Implementations§
impl Freeze for ObservableStateBatch
impl RefUnwindSafe for ObservableStateBatch
impl Send for ObservableStateBatch
impl Sync for ObservableStateBatch
impl Unpin for ObservableStateBatch
impl UnsafeUnpin for ObservableStateBatch
impl UnwindSafe for ObservableStateBatch
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
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.