pub struct Simulation {
pub name: String,
pub default_particle: Option<String>,
pub blocks: Vec<SimulationBlock>,
}Expand description
Structure representing a simulation
Fields§
§name: String§default_particle: Option<String>§blocks: Vec<SimulationBlock>Trait Implementations§
Source§impl ConstantSubstitution for Simulation
impl ConstantSubstitution for Simulation
fn substitute_constant( &mut self, name: &str, value: &SubstitutionValue, ) -> Result<()>
Source§impl Debug for Simulation
impl Debug for Simulation
Source§impl PartialEq for Simulation
impl PartialEq for Simulation
impl StructuralPartialEq for Simulation
Auto Trait Implementations§
impl Freeze for Simulation
impl RefUnwindSafe for Simulation
impl Send for Simulation
impl Sync for Simulation
impl Unpin for Simulation
impl UnwindSafe for Simulation
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> 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