Function demes::ffi::demes_deme_size_at
source · #[no_mangle]
pub unsafe extern "C" fn demes_deme_size_at(
deme: &Deme,
time: f64,
output: &mut f64
) -> c_int
Expand description
Get the size of a Deme
at a specific time.
§Returns
- 0 if no error occurs
- non-zero otherwise
§Side effects
- If
time
falls within thedeme``s
[start_time, end_time),output
is overwritten with the size ofdeme
at timetime
- If
time
is outside of that interval OR an error occurs,output
is overwritten withf64::NAN
.
§Errors
If the internal calculation of the deme size results in an invalid crate::DemeSize
,
then this function will return a non-zero value.
§Safety
output
must be a non-NULL pointer to a f64
.