pub struct GnssSatelliteId {
pub system: GnssSystem,
pub prn: u8,
}Expand description
A satellite identifier: a constellation plus its within-system PRN/slot.
This is the GnssSatelliteId { system, prn } foundational type from the
spec (line 112). The prn is the within-constellation satellite number as
it appears in the product (e.g. the 01 in the SP3/RINEX token G01); it
is only meaningful in combination with GnssSatelliteId::system.
Fields§
§system: GnssSystemThe constellation this satellite belongs to.
prn: u8The within-constellation PRN / slot number (e.g. 1 for G01).
Implementations§
Source§impl GnssSatelliteId
impl GnssSatelliteId
Sourcepub const fn new(system: GnssSystem, prn: u8) -> Result<Self, SatelliteIdError>
pub const fn new(system: GnssSystem, prn: u8) -> Result<Self, SatelliteIdError>
Construct an identifier from a constellation and PRN.
Trait Implementations§
Source§impl Clone for GnssSatelliteId
impl Clone for GnssSatelliteId
Source§fn clone(&self) -> GnssSatelliteId
fn clone(&self) -> GnssSatelliteId
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GnssSatelliteId
Source§impl Debug for GnssSatelliteId
impl Debug for GnssSatelliteId
Source§impl<'de> Deserialize<'de> for GnssSatelliteId
impl<'de> Deserialize<'de> for GnssSatelliteId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for GnssSatelliteId
impl Display for GnssSatelliteId
impl Eq for GnssSatelliteId
Source§impl FromStr for GnssSatelliteId
impl FromStr for GnssSatelliteId
Source§fn from_str(token: &str) -> Result<Self, Self::Err>
fn from_str(token: &str) -> Result<Self, Self::Err>
Parse a canonical SP3/RINEX satellite token (G01, E12, C30): a
constellation letter followed by the within-system PRN. Whitespace around
the token and around the PRN is ignored, matching the SP3/RINEX field
readers. This is the single canonical satellite-token parser; the
SP3/RINEX/DGNSS readers delegate to it.
Source§impl Hash for GnssSatelliteId
impl Hash for GnssSatelliteId
Source§impl Ord for GnssSatelliteId
impl Ord for GnssSatelliteId
Source§fn cmp(&self, other: &GnssSatelliteId) -> Ordering
fn cmp(&self, other: &GnssSatelliteId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for GnssSatelliteId
impl PartialEq for GnssSatelliteId
Source§fn eq(&self, other: &GnssSatelliteId) -> bool
fn eq(&self, other: &GnssSatelliteId) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GnssSatelliteId
impl PartialOrd for GnssSatelliteId
Source§impl Serialize for GnssSatelliteId
impl Serialize for GnssSatelliteId
impl StructuralPartialEq for GnssSatelliteId
Auto Trait Implementations§
impl Freeze for GnssSatelliteId
impl RefUnwindSafe for GnssSatelliteId
impl Send for GnssSatelliteId
impl Sync for GnssSatelliteId
impl Unpin for GnssSatelliteId
impl UnsafeUnpin for GnssSatelliteId
impl UnwindSafe for GnssSatelliteId
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.