pub struct ConfigValue(/* private fields */);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 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