consistency renaming

This commit is contained in:
Robin Müller 2023-01-15 21:13:48 +01:00
parent 973c54e0de
commit 2f51420a29
No known key found for this signature in database
GPG Key ID: BE6480244DFE612C

View File

@ -180,7 +180,7 @@ pub trait CdsCommon {
} }
/// Generic properties for all CDS time providers. /// Generic properties for all CDS time providers.
pub trait CdsTimeStamp: CdsCommon { pub trait CdsTimestamp: CdsCommon {
fn len_of_day_seg(&self) -> LengthOfDaySegment; fn len_of_day_seg(&self) -> LengthOfDaySegment;
} }
@ -388,7 +388,7 @@ impl CdsConverter for ConversionFromNow {
} }
#[cfg(feature = "alloc")] #[cfg(feature = "alloc")]
pub trait DynCdsTimeProvider: CcsdsTimeProvider + CdsTimeStamp + TimeWriter + Any {} pub trait DynCdsTimeProvider: CcsdsTimeProvider + CdsTimestamp + TimeWriter + Any {}
#[cfg(feature = "alloc")] #[cfg(feature = "alloc")]
impl DynCdsTimeProvider for TimeProvider<DaysLen16Bits> {} impl DynCdsTimeProvider for TimeProvider<DaysLen16Bits> {}
#[cfg(feature = "alloc")] #[cfg(feature = "alloc")]
@ -983,13 +983,13 @@ fn add_for_max_ccsds_days_val<T: ProvidesDaysLength>(
(next_ccsds_days, next_ms_of_day, precision) (next_ccsds_days, next_ms_of_day, precision)
} }
impl CdsTimeStamp for TimeProvider<DaysLen16Bits> { impl CdsTimestamp for TimeProvider<DaysLen16Bits> {
fn len_of_day_seg(&self) -> LengthOfDaySegment { fn len_of_day_seg(&self) -> LengthOfDaySegment {
LengthOfDaySegment::Short16Bits LengthOfDaySegment::Short16Bits
} }
} }
impl CdsTimeStamp for TimeProvider<DaysLen24Bits> { impl CdsTimestamp for TimeProvider<DaysLen24Bits> {
fn len_of_day_seg(&self) -> LengthOfDaySegment { fn len_of_day_seg(&self) -> LengthOfDaySegment {
LengthOfDaySegment::Long24Bits LengthOfDaySegment::Long24Bits
} }