Trait nyx_space::md::prelude::NAIFSummaryRecord

pub trait NAIFSummaryRecord: NAIFRecord + Copy {
    const NAME: &'static str;

    // Required methods
    fn start_index(&self) -> usize;
    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 Methods§

fn start_index(&self) -> usize

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

Object Safety§

This trait is not object safe.

Implementors§

§

impl NAIFSummaryRecord for BPCSummaryRecord

§

const NAME: &'static str = "BPCSummaryRecord"

§

impl NAIFSummaryRecord for SPKSummaryRecord

§

const NAME: &'static str = "SPKSummaryRecord"