pub struct PolicyGene {
pub name: String,
pub value: f64,
pub dominant: bool,
}Expand description
A gene in a policy’s DNA.
Fields§
§name: StringGene name (e.g., “scope_breadth”, “restriction_level”).
value: f64Gene value (0.0-1.0).
dominant: boolWhether this gene is dominant.
Trait Implementations§
Source§impl Clone for PolicyGene
impl Clone for PolicyGene
Source§fn clone(&self) -> PolicyGene
fn clone(&self) -> PolicyGene
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolicyGene
impl Debug for PolicyGene
Source§impl<'de> Deserialize<'de> for PolicyGene
impl<'de> Deserialize<'de> for PolicyGene
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 PolicyGene
impl RefUnwindSafe for PolicyGene
impl Send for PolicyGene
impl Sync for PolicyGene
impl Unpin for PolicyGene
impl UnsafeUnpin for PolicyGene
impl UnwindSafe for PolicyGene
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