pub struct Services { /* private fields */ }
Expand description
The simulator provides a uniform random number generator and simulation clock to models during the execution of a simulation
Implementations§
source§impl Services
impl Services
pub fn global_rng(&self) -> DynRng
pub fn global_time(&self) -> f64
pub fn set_global_time(&mut self, time: f64)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Services
impl<'de> Deserialize<'de> for Services
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 !RefUnwindSafe for Services
impl !Send for Services
impl !Sync for Services
impl Unpin for Services
impl !UnwindSafe for Services
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