pub struct Positive<T>(/* private fields */);Implementations§
Source§impl<T> Positive<T>
impl<T> Positive<T>
pub fn into_inner(self) -> T
pub fn unchecked_new(value: T) -> Self
Trait Implementations§
impl<T: ConfigurableAtomic + IsPositive> ConfigurableAtomic for Positive<T>
impl ConfigurableAtomic for Positive<f32>
impl ConfigurableAtomic for Positive<f64>
impl<T: Copy> Copy for Positive<T>
Source§impl<'de, T: Deserialize<'de> + IsPositive> Deserialize<'de> for Positive<T>
impl<'de, T: Deserialize<'de> + IsPositive> Deserialize<'de> for Positive<T>
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
impl<T: Eq> Eq for Positive<T>
impl<T: PartialEq> StructuralPartialEq for Positive<T>
Auto Trait Implementations§
impl<T> Forget for Positive<T>
impl<T> Freeze for Positive<T>where
T: Freeze,
impl<T> Move for Positive<T>
impl<T> RefUnwindSafe for Positive<T>where
T: RefUnwindSafe,
impl<T> Send for Positive<T>where
T: Send,
impl<T> Sync for Positive<T>where
T: Sync,
impl<T> Unpin for Positive<T>where
T: Unpin,
impl<T> UnsafeUnpin for Positive<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Positive<T>where
T: UnwindSafe,
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<T> Configurable for Twhere
T: ConfigurableAtomic,
impl<T> Configurable for Twhere
T: ConfigurableAtomic,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> PartialValue for Twhere
T: ConfigurableAtomic,
impl<T> PartialValue for Twhere
T: ConfigurableAtomic,
Source§fn attribute(&mut self, _origin: OriginId)
fn attribute(&mut self, _origin: OriginId)
Record that everything set here came from
origin. Read moreSource§fn apply_defaults(&mut self)
fn apply_defaults(&mut self)
Fill in the built-in defaults of everything still unset. Read more
Source§fn resolve(
self,
_path: &mut ConfigPath,
) -> Result<<T as PartialValue>::Resolved, ConfigError>
fn resolve( self, _path: &mut ConfigPath, ) -> Result<<T as PartialValue>::Resolved, ConfigError>
Produce the final value, reporting if any required value is still missing.