nyx_space::cosmic

Trait NAIFSummaryRecord

pub trait NAIFSummaryRecord:
    NAIFRecord
    + Copy
    + Immutable
    + KnownLayout {
    type Error: 'static + Error;

    const NAME: &'static str;

    // Required methods
    fn start_index(&self) -> usize;
    fn data_type(&self) -> Result<DataType, Self::Error>;
    fn end_index(&self) -> usize;
    fn start_epoch(&self) -> Epoch;
    fn end_epoch(&self) -> Epoch;
    fn start_epoch_et_s(&self) -> f64;
    fn end_epoch_et_s(&self) -> f64;
    fn id(&self) -> i32;
    fn update_indexes(&mut self, start: usize, end: usize);
    fn update_epochs(&mut self, start_epoch: Epoch, end_epoch: Epoch);

    // Provided method
    fn is_empty(&self) -> bool { ... }
}

Required Associated Constants§

const NAME: &'static str

Name of this NAIF type

Required Associated Types§

type Error: 'static + Error

Required Methods§

fn start_index(&self) -> usize

fn data_type(&self) -> Result<DataType, Self::Error>

fn end_index(&self) -> usize

fn start_epoch(&self) -> Epoch

Returns the start epoch in high precision Epoch

fn end_epoch(&self) -> Epoch

Returns the end epoch in high precision Epoch

fn start_epoch_et_s(&self) -> f64

Returns the start epoch in TDB seconds

fn end_epoch_et_s(&self) -> f64

Returns the end epoch in TDB seconds

fn id(&self) -> i32

Returns whatever is the ID of this summary record.

fn update_indexes(&mut self, start: usize, end: usize)

Updates the indexes of this summary (used when modifying a DAF).

fn update_epochs(&mut self, start_epoch: Epoch, end_epoch: Epoch)

Updates the epochs of this summary (used when modifying a DAF).

Provided Methods§

fn is_empty(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl NAIFSummaryRecord for BPCSummaryRecord

§

const NAME: &'static str = "BPCSummaryRecord"

§

type Error = OrientationError

§

impl NAIFSummaryRecord for SPKSummaryRecord

§

const NAME: &'static str = "SPKSummaryRecord"

§

type Error = EphemerisError