pub struct FactorGene {
pub scope: Vec<VarId>,
pub kind: FactorKind,
pub shape: Vec<usize>,
pub params: Value<f32>,
}Fields§
§scope: Vec<VarId>§kind: FactorKind§shape: Vec<usize>§params: Value<f32>Implementations§
Source§impl FactorGene
impl FactorGene
pub fn resample_scope(&mut self, vars: &[VarSpec], max_scope: usize)
Trait Implementations§
Source§impl Clone for FactorGene
impl Clone for FactorGene
Source§fn clone(&self) -> FactorGene
fn clone(&self) -> FactorGene
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 FactorGene
impl Debug for FactorGene
Source§impl Gene for FactorGene
impl Gene for FactorGene
type Allele = FactorGene
Source§fn allele_mut(&mut self) -> &mut Self::Allele
fn allele_mut(&mut self) -> &mut Self::Allele
Get a mutable reference to the
allele of the Gene.Source§fn new_instance(&self) -> Self
fn new_instance(&self) -> Self
Create a new instance of the Gene.
Source§fn with_allele(&self, allele: &Self::Allele) -> Self
fn with_allele(&self, allele: &Self::Allele) -> Self
Create a new Gene with the given
allele.Source§impl PartialEq for FactorGene
impl PartialEq for FactorGene
impl StructuralPartialEq for FactorGene
Auto Trait Implementations§
impl Freeze for FactorGene
impl RefUnwindSafe for FactorGene
impl Send for FactorGene
impl Sync for FactorGene
impl Unpin for FactorGene
impl UnsafeUnpin for FactorGene
impl UnwindSafe for FactorGene
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