Module neat

Source
Expand description

Improvement on the procedurally generated functions.

§Description

The idiomatic Rust bindings to CSPICE can be very hard to generate in a procedural macro in some specific cases. You can find, in this module, functions wrapped from raw to better match an idiomatic usage. The improvements consists in functions:

  • taking a string as input in C requires to also send the size of the pointer to a char array. In Rust, you only send the string.
  • taking taking input for array size and outputing size whereas a vector can be used
  • which outputs string that be allocated from default length sometimes

Functions§

bodc2n
Translate the SPICE integer code of a body into a common name for that body.
dskp02
Fetch triangular plates from a type 2 DSK segment.
dskv02
Fetch vertices from a type 2 DSK segment.
kdata
Fetch vertices from a type 2 DSK segment.
timout
This routine converts an input epoch represented in TDB seconds past the TDB epoch of J2000 to a character string formatted to the specifications of a user’s format picture.