pub struct ConfigValue(/* private fields */);๐Deprecated
Expand description
A struct that ensures all values are safe for JSON serialization, including handling special
floating point values like NaN and Infinity. Use the From<&str> implementation to create an instance.
Trait Implementationsยง
Sourceยงimpl From<&str> for ConfigValue
impl From<&str> for ConfigValue
Sourceยงfn from(value: &str) -> ConfigValue
fn from(value: &str) -> ConfigValue
Guess the type of a Value.
Sourceยงimpl From<ConfigValue> for Value
impl From<ConfigValue> for Value
Sourceยงfn from(value: ConfigValue) -> Value
fn from(value: ConfigValue) -> Value
Converts to this type from the input type.
Sourceยงimpl From<String> for ConfigValue
impl From<String> for ConfigValue
Sourceยงfn from(value: String) -> ConfigValue
fn from(value: String) -> ConfigValue
Converts to this type from the input type.
Auto Trait Implementationsยง
impl Freeze for ConfigValue
impl RefUnwindSafe for ConfigValue
impl Send for ConfigValue
impl Sync for ConfigValue
impl Unpin for ConfigValue
impl UnsafeUnpin for ConfigValue
impl UnwindSafe for ConfigValue
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> 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 more