Skip to content

Commit

Permalink
add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperCodec committed Feb 22, 2024
1 parent 23c7081 commit bb4fe37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/topology.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ use rand::prelude::*;
#[cfg(feature = "serde")]
use serde::{Serialize, Serializer, Deserialize, Deserializer};

/// Contains useful structs for serializing/deserializing a [`NeuronTopology`]
#[cfg(feature = "serde")]
pub mod nnt_serde {
use super::*;
use serde::{Serialize, Deserialize};
use serde_big_array::BigArray;

/// A serializable wrapper for [`NeuronToplogy`]. See [`NNTSerde::from`] for conversion.
#[derive(Serialize, Deserialize)]
pub struct NNTSerde<const I: usize, const O: usize> {
#[serde(with = "BigArray")]
Expand Down

0 comments on commit bb4fe37

Please sign in to comment.