pub struct DeclaredScenarioSource<'a, E: ?Sized> { /* private fields */ }Expand description
Already loaded ephemeris source paired with its scenario identity.
Implementations§
Source§impl<'a, E: ?Sized> DeclaredScenarioSource<'a, E>
impl<'a, E: ?Sized> DeclaredScenarioSource<'a, E>
Sourcepub fn new(source: &'a E, identity: ScenarioExternalProduct) -> Self
pub fn new(source: &'a E, identity: ScenarioExternalProduct) -> Self
Pair an in-memory ephemeris source with the identity declared by a scenario.
Sourcepub fn identity(&self) -> &ScenarioExternalProduct
pub fn identity(&self) -> &ScenarioExternalProduct
Declared identity for this source.
Trait Implementations§
Source§impl<E: EphemerisSource + ?Sized> EphemerisSource for DeclaredScenarioSource<'_, E>
impl<E: EphemerisSource + ?Sized> EphemerisSource for DeclaredScenarioSource<'_, E>
Source§fn position_clock_at_j2000_s(
&self,
sat: GnssSatelliteId,
t_j2000_s: f64,
) -> Option<([f64; 3], f64)>
fn position_clock_at_j2000_s( &self, sat: GnssSatelliteId, t_j2000_s: f64, ) -> Option<([f64; 3], f64)>
ECEF position (m) and satellite clock offset (s) for
sat at t_j2000_s.Source§impl<E: ObservableEphemerisSource + ?Sized> ObservableEphemerisSource for DeclaredScenarioSource<'_, E>
impl<E: ObservableEphemerisSource + ?Sized> ObservableEphemerisSource for DeclaredScenarioSource<'_, E>
Source§fn observable_state_at_j2000_s(
&self,
sat: GnssSatelliteId,
t_j2000_s: f64,
) -> Result<ObservableState, ObservablesError>
fn observable_state_at_j2000_s( &self, sat: GnssSatelliteId, t_j2000_s: f64, ) -> Result<ObservableState, ObservablesError>
ECEF position and optional satellite clock at seconds since J2000.
Source§fn observable_states_at_j2000_s(
&self,
satellites: &[GnssSatelliteId],
epochs_j2000_s: &[f64],
) -> Result<ObservableStateBatch, ObservablesError>
fn observable_states_at_j2000_s( &self, satellites: &[GnssSatelliteId], epochs_j2000_s: &[f64], ) -> Result<ObservableStateBatch, ObservablesError>
ECEF states for parallel satellite and epoch arrays. Read more
ECEF states for many satellites at one shared epoch. Read more
Auto Trait Implementations§
impl<'a, E> Freeze for DeclaredScenarioSource<'a, E>where
E: ?Sized,
impl<'a, E> RefUnwindSafe for DeclaredScenarioSource<'a, E>where
E: RefUnwindSafe + ?Sized,
impl<'a, E> Send for DeclaredScenarioSource<'a, E>
impl<'a, E> Sync for DeclaredScenarioSource<'a, E>
impl<'a, E> Unpin for DeclaredScenarioSource<'a, E>where
E: ?Sized,
impl<'a, E> UnsafeUnpin for DeclaredScenarioSource<'a, E>where
E: ?Sized,
impl<'a, E> UnwindSafe for DeclaredScenarioSource<'a, E>where
E: RefUnwindSafe + ?Sized,
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
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 moreSource§impl<T> Pointable for T
impl<T> Pointable 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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.