Enum swiftnav::time::InvalidGpsTime
source · pub enum InvalidGpsTime {
InvalidWN(i16),
InvalidTOW(f64),
}
Expand description
Error type when a given GPS time is not valid
Variants§
InvalidWN(i16)
Indicates an invalid week number was given, with the invalid value returned
InvalidTOW(f64)
Indicates an invalid time of week was given, with the invalid value returned
Trait Implementations§
source§impl Clone for InvalidGpsTime
impl Clone for InvalidGpsTime
source§fn clone(&self) -> InvalidGpsTime
fn clone(&self) -> InvalidGpsTime
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InvalidGpsTime
impl Debug for InvalidGpsTime
source§impl Display for InvalidGpsTime
impl Display for InvalidGpsTime
source§impl Error for InvalidGpsTime
impl Error for InvalidGpsTime
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<InvalidGpsTime> for InvalidGpsTime
impl PartialEq<InvalidGpsTime> for InvalidGpsTime
source§fn eq(&self, other: &InvalidGpsTime) -> bool
fn eq(&self, other: &InvalidGpsTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<InvalidGpsTime> for InvalidGpsTime
impl PartialOrd<InvalidGpsTime> for InvalidGpsTime
source§fn partial_cmp(&self, other: &InvalidGpsTime) -> Option<Ordering>
fn partial_cmp(&self, other: &InvalidGpsTime) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for InvalidGpsTime
impl StructuralPartialEq for InvalidGpsTime
Auto Trait Implementations§
impl RefUnwindSafe for InvalidGpsTime
impl Send for InvalidGpsTime
impl Sync for InvalidGpsTime
impl Unpin for InvalidGpsTime
impl UnwindSafe for InvalidGpsTime
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