pub struct NNTSerde<const I: usize, const O: usize> { /* private fields */ }
Available on crate feature
serde
only.Expand description
A serializable wrapper for NeuronTopology
. See NNTSerde::from
for conversion.
Trait Implementations§
Source§impl<'de, const I: usize, const O: usize> Deserialize<'de> for NNTSerde<I, O>
impl<'de, const I: usize, const O: usize> Deserialize<'de> for NNTSerde<I, O>
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
Source§impl<const I: usize, const O: usize> From<&NeuralNetworkTopology<I, O>> for NNTSerde<I, O>
impl<const I: usize, const O: usize> From<&NeuralNetworkTopology<I, O>> for NNTSerde<I, O>
Source§fn from(value: &NeuralNetworkTopology<I, O>) -> Self
fn from(value: &NeuralNetworkTopology<I, O>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<const I: usize, const O: usize> Freeze for NNTSerde<I, O>
impl<const I: usize, const O: usize> !RefUnwindSafe for NNTSerde<I, O>
impl<const I: usize, const O: usize> Send for NNTSerde<I, O>
impl<const I: usize, const O: usize> Sync for NNTSerde<I, O>
impl<const I: usize, const O: usize> Unpin for NNTSerde<I, O>
impl<const I: usize, const O: usize> !UnwindSafe for NNTSerde<I, O>
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