pub struct PgmCodec {
pub vars: Arc<[VarSpec]>,
pub num_factors: usize,
pub max_scope: usize,
}Fields§
§vars: Arc<[VarSpec]>§num_factors: usize§max_scope: usizeImplementations§
Trait Implementations§
Source§impl Codec<PgmChromosome, PgmChromosome> for PgmCodec
impl Codec<PgmChromosome, PgmChromosome> for PgmCodec
fn encode(&self) -> Genotype<PgmChromosome>
fn decode(&self, genotype: &Genotype<PgmChromosome>) -> PgmChromosome
Auto Trait Implementations§
impl Freeze for PgmCodec
impl RefUnwindSafe for PgmCodec
impl Send for PgmCodec
impl Sync for PgmCodec
impl Unpin for PgmCodec
impl UnsafeUnpin for PgmCodec
impl UnwindSafe for PgmCodec
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