Skip to main content

TypeSpec

Struct TypeSpec 

Source
pub struct TypeSpec {
Show 17 fields pub name: String, pub target_volume: f64, pub lambda_volume: f64, pub secretion: BTreeMap<String, f64>, pub uptake: BTreeMap<String, f64>, pub chemotaxis: BTreeMap<String, f64>, pub presents: BTreeMap<String, f64>, pub target_surface: f64, pub lambda_surface: f64, pub division_volume: f64, pub death_rate: f64, pub target_length: f64, pub lambda_length: f64, pub connected: bool, pub max_activity: f64, pub lambda_activity: f64, pub external: [f64; 3],
}
Expand description

A cell type as the description states it.

Fields§

§name: String

The name an engine shows.

§target_volume: f64

Target volume in lattice sites.

§lambda_volume: f64

Volume constraint strength.

§secretion: BTreeMap<String, f64>

Amount of each named species added to every site the cell owns, per step. A species the map leaves out is not secreted.

§uptake: BTreeMap<String, f64>

Fraction of each named species removed from every site the cell owns, per step.

§chemotaxis: BTreeMap<String, f64>

Sensitivity to each named species’ gradient. Positive climbs it.

§presents: BTreeMap<String, f64>

How much of each adhesion molecule this type presents.

§target_surface: f64

Target surface in boundary bonds. Zero with lambda_surface zero leaves the constraint out, which is what a description that says nothing about surface means.

§lambda_surface: f64

Surface constraint strength.

§division_volume: f64

Volume at which a cell divides, in sites. Absent never divides.

§death_rate: f64

Probability per step that a cell of this type dies. Absent never dies.

§target_length: f64

Target major axis in sites. Absent leaves the length unconstrained.

§lambda_length: f64

Length constraint strength.

§connected: bool

Refuse a copy that would locally pinch a cell of this type in two.

§max_activity: f64

Steps of memory a site keeps after this cell takes it.

§lambda_activity: f64

Strength of the persistence that memory buys.

§external: [f64; 3]

A constant drift, stated per axis.

Trait Implementations§

Source§

impl Clone for TypeSpec

Source§

fn clone(&self) -> TypeSpec

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TypeSpec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TypeSpec

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<TypeSpec, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for TypeSpec

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.