scopinator-types 0.1.0

Shared types for the scopinator telescope control library
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[derive(Debug, thiserror::Error)]
pub enum TypeError {
    #[error("invalid RA: {0} degrees (must be 0.0..360.0)")]
    InvalidRa(f64),

    #[error("invalid RA: {0} hours (must be 0.0..24.0)")]
    InvalidRaHours(f64),

    #[error("invalid Dec: {0} degrees (must be -90.0..=90.0)")]
    InvalidDec(f64),
}