pub struct Specimen {
pub brain: NetworkLayout,
pub fitness: f64,
}
Expand description
Specimen is used to exchange the neural network data with the outside world.
This is the struct you use for transferring the
neural network instances to and from the easyneural
crate.
Fields§
§brain: NetworkLayout
§fitness: f64
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Specimen
impl<'de> Deserialize<'de> for Specimen
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 Specimen
impl RefUnwindSafe for Specimen
impl Send for Specimen
impl Sync for Specimen
impl Unpin for Specimen
impl UnwindSafe for Specimen
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