supernovas 0.2.0

Safe Rust wrapper around the SuperNOVAS astrometry library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Error type for the safe wrapper.

/// Errors produced by safe-wrapper constructors and parsers.
#[derive(Debug, Clone, Copy, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
    /// A finite real value was required, but the input was NaN or infinite.
    #[error("value was not finite")]
    NotFinite,

    /// A string or name could not be parsed into the requested type, or an FFI
    /// call returned a failure code.
    #[error("parse error")]
    Parse,
}

pub type Result<T> = core::result::Result<T, Error>;