pub struct Cell<T: CellType> { /* private fields */ }
Expand description
A Rust wrapper around a SpiceCell and its data.
Implementations§
Source§impl<T: CellType> Cell<T>
impl<T: CellType> Cell<T>
Sourcepub fn as_mut_cell(&mut self) -> *mut SpiceCell
pub fn as_mut_cell(&mut self) -> *mut SpiceCell
Access the internal CSPICE Cell structure.
Sourcepub fn set_cardinality(&mut self, cardinality: usize) -> Result<(), Error>
pub fn set_cardinality(&mut self, cardinality: usize) -> Result<(), Error>
Set the cardinality of a cell.
See scard_c.
Sourcepub fn get_size(&mut self) -> Result<usize, Error>
pub fn get_size(&mut self) -> Result<usize, Error>
Return the size (maximum cardinality) of a SPICE cell.
See size_c
Source§impl Cell<SpiceDouble>
impl Cell<SpiceDouble>
Sourcepub fn new_double(size: usize) -> Self
pub fn new_double(size: usize) -> Self
Creates a SPICEDOUBLE_CELL
Source§impl Cell<SpiceDouble>
Window specific functions
impl Cell<SpiceDouble>
Window specific functions
Sourcepub fn window_cardinality(&mut self) -> Result<SpiceInt, Error>
pub fn window_cardinality(&mut self) -> Result<SpiceInt, Error>
Return the cardinality (number of intervals) of a double precision window.
See wncard_c.
Sourcepub fn window_compliment(
&mut self,
left: SpiceDouble,
right: SpiceDouble,
output: &mut Window,
) -> Result<(), Error>
pub fn window_compliment( &mut self, left: SpiceDouble, right: SpiceDouble, output: &mut Window, ) -> Result<(), Error>
Determine the complement of a double precision window with respect to a specified interval.
See wncomd_c.
Sourcepub fn window_contract(
&mut self,
left: SpiceDouble,
right: SpiceDouble,
) -> Result<(), Error>
pub fn window_contract( &mut self, left: SpiceDouble, right: SpiceDouble, ) -> Result<(), Error>
Contract each of the intervals of a double precision window.
See wncond_c.
Sourcepub fn window_difference(
&mut self,
other: &mut Window,
output: &mut Window,
) -> Result<(), Error>
pub fn window_difference( &mut self, other: &mut Window, output: &mut Window, ) -> Result<(), Error>
Place the difference of two double precision windows into a third window.
See wndifd_c.
Sourcepub fn window_contains_element(
&mut self,
point: SpiceDouble,
) -> Result<bool, Error>
pub fn window_contains_element( &mut self, point: SpiceDouble, ) -> Result<bool, Error>
Determine whether a point is an element of a double precision window
See wnelmd_c.
Sourcepub fn window_expand(
&mut self,
left: SpiceDouble,
right: SpiceDouble,
) -> Result<(), Error>
pub fn window_expand( &mut self, left: SpiceDouble, right: SpiceDouble, ) -> Result<(), Error>
Expand each of the intervals of a double precision window
See wnexpd_c.
Sourcepub fn window_extract(&mut self, side: Side) -> Result<(), Error>
pub fn window_extract(&mut self, side: Side) -> Result<(), Error>
Extract the left or right endpoints from a double precision window.
See wnextd_c.
Sourcepub fn window_interval(
&mut self,
n: usize,
) -> Result<(SpiceDouble, SpiceDouble), Error>
pub fn window_interval( &mut self, n: usize, ) -> Result<(SpiceDouble, SpiceDouble), Error>
Fetch a particular interval from a double precision window.
See wnfetd_c.
Sourcepub fn window_fill(&mut self, small_gap: SpiceDouble) -> Result<(), Error>
pub fn window_fill(&mut self, small_gap: SpiceDouble) -> Result<(), Error>
Fill small gaps between adjacent intervals of a double precision window.
See wnfild_c.
Sourcepub fn window_filter(
&mut self,
small_interval: SpiceDouble,
) -> Result<(), Error>
pub fn window_filter( &mut self, small_interval: SpiceDouble, ) -> Result<(), Error>
Filter (remove) small intervals from a double precision window.
See wnfltd_c.
Sourcepub fn window_contains_interval(
&mut self,
left: SpiceDouble,
right: SpiceDouble,
) -> Result<bool, Error>
pub fn window_contains_interval( &mut self, left: SpiceDouble, right: SpiceDouble, ) -> Result<bool, Error>
Determine whether an interval is included in a double precision window.
See wnincd_c.
Sourcepub fn window_insert_interval(
&mut self,
left: SpiceDouble,
right: SpiceDouble,
) -> Result<(), Error>
pub fn window_insert_interval( &mut self, left: SpiceDouble, right: SpiceDouble, ) -> Result<(), Error>
Insert an interval into a double precision window.
See wninsd_c.
Sourcepub fn window_intersect(
&mut self,
other: &mut Window,
output: &mut Window,
) -> Result<(), Error>
pub fn window_intersect( &mut self, other: &mut Window, output: &mut Window, ) -> Result<(), Error>
Place the intersection of two double precision windows into a third window.
See wnintd_c.
Sourcepub fn window_compare(
&mut self,
comparison_op: ComparisonOperator,
other: &mut Window,
) -> Result<bool, Error>
pub fn window_compare( &mut self, comparison_op: ComparisonOperator, other: &mut Window, ) -> Result<bool, Error>
Compare two double precision windows.
See wnreld_c.
Sourcepub fn window_summarize(&mut self) -> Result<WindowSummary, Error>
pub fn window_summarize(&mut self) -> Result<WindowSummary, Error>
Summarize the contents of a double precision window.
See wnsumd_c.