pub struct NeuronDepth { /* private fields */ }Expand description
The number of Neurons cannot be zero.
Implementations§
Source§impl NeuronDepth
impl NeuronDepth
Sourcepub fn new(value: u32) -> Result<NeuronDepth, FeagiDataError>
pub fn new(value: u32) -> Result<NeuronDepth, FeagiDataError>
Creates a new instance, returns Err if validation fails
Trait Implementations§
Source§impl Clone for NeuronDepth
impl Clone for NeuronDepth
Source§fn clone(&self) -> NeuronDepth
fn clone(&self) -> NeuronDepth
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 NeuronDepth
impl Debug for NeuronDepth
Source§impl Deref for NeuronDepth
impl Deref for NeuronDepth
Source§impl<'de> Deserialize<'de> for NeuronDepth
impl<'de> Deserialize<'de> for NeuronDepth
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NeuronDepth, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NeuronDepth, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for NeuronDepth
impl Display for NeuronDepth
Source§impl From<NeuronDepth> for u32
impl From<NeuronDepth> for u32
Source§fn from(value: NeuronDepth) -> u32
fn from(value: NeuronDepth) -> u32
Converts to this type from the input type.
Source§impl Hash for NeuronDepth
impl Hash for NeuronDepth
Source§impl Ord for NeuronDepth
impl Ord for NeuronDepth
Source§fn cmp(&self, other: &NeuronDepth) -> Ordering
fn cmp(&self, other: &NeuronDepth) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NeuronDepth
impl PartialEq for NeuronDepth
Source§impl PartialOrd for NeuronDepth
impl PartialOrd for NeuronDepth
Source§impl Serialize for NeuronDepth
impl Serialize for NeuronDepth
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<u32> for NeuronDepth
impl TryFrom<u32> for NeuronDepth
Source§type Error = FeagiDataError
type Error = FeagiDataError
The type returned in the event of a conversion error.
Source§fn try_from(value: u32) -> Result<NeuronDepth, FeagiDataError>
fn try_from(value: u32) -> Result<NeuronDepth, FeagiDataError>
Performs the conversion.
impl Copy for NeuronDepth
impl Eq for NeuronDepth
impl StructuralPartialEq for NeuronDepth
Auto Trait Implementations§
impl Freeze for NeuronDepth
impl RefUnwindSafe for NeuronDepth
impl Send for NeuronDepth
impl Sync for NeuronDepth
impl Unpin for NeuronDepth
impl UnwindSafe for NeuronDepth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.