pub struct Program { /* private fields */ }
Expand description
A facade that takes values from crate::body::observatory::Observatory
in the tree defined at the root of Self::_root_body
that outputs using the given outputs provided with a path
Implementations§
Source§impl Program
impl Program
Sourcepub fn make_observations(
&self,
start_time: i128,
end_time: i128,
step_size: Option<usize>,
)
pub fn make_observations( &self, start_time: i128, end_time: i128, step_size: Option<usize>, )
Generate observations between the start and end time i.e. [start_time, end_time)
, with
observations every step_size
hours.
§Outputs
Outputs depend on the implementations of crate::output::Output
used, but generally they
will be files in the directory Self::output_file_root
/[OBSERVATORY NAME]/
Sourcepub fn set_output_path<T: Into<PathBuf>>(&mut self, output: T)
pub fn set_output_path<T: Into<PathBuf>>(&mut self, output: T)
Set the output root
pub fn add_output(&mut self, output_method: Box<dyn Output>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Program
impl<'de> Deserialize<'de> for Program
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Program
impl !RefUnwindSafe for Program
impl !Send for Program
impl Sync for Program
impl Unpin for Program
impl !UnwindSafe for Program
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more