Enum toml_test_harness::DecodedValue
source · pub enum DecodedValue {
String(String),
Integer(String),
Float(String),
Bool(String),
Datetime(String),
DatetimeLocal(String),
DateLocal(String),
TimeLocal(String),
}
Variants§
String(String)
Integer(String)
Float(String)
Bool(String)
Datetime(String)
DatetimeLocal(String)
DateLocal(String)
TimeLocal(String)
Implementations§
Trait Implementations§
source§impl Clone for DecodedValue
impl Clone for DecodedValue
source§fn clone(&self) -> DecodedValue
fn clone(&self) -> DecodedValue
Returns a copy 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 DecodedValue
impl Debug for DecodedValue
source§impl<'de> Deserialize<'de> for DecodedValue
impl<'de> Deserialize<'de> for DecodedValue
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecodedValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecodedValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<&'a String> for DecodedValue
impl<'a> From<&'a String> for DecodedValue
source§fn from(other: &'a String) -> DecodedValue
fn from(other: &'a String) -> DecodedValue
Converts to this type from the input type.
source§impl<'a> From<&'a str> for DecodedValue
impl<'a> From<&'a str> for DecodedValue
source§fn from(other: &'a str) -> DecodedValue
fn from(other: &'a str) -> DecodedValue
Converts to this type from the input type.
source§impl From<String> for DecodedValue
impl From<String> for DecodedValue
source§fn from(other: String) -> DecodedValue
fn from(other: String) -> DecodedValue
Converts to this type from the input type.
source§impl From<bool> for DecodedValue
impl From<bool> for DecodedValue
source§fn from(other: bool) -> DecodedValue
fn from(other: bool) -> DecodedValue
Converts to this type from the input type.
source§impl From<f64> for DecodedValue
impl From<f64> for DecodedValue
source§fn from(other: f64) -> DecodedValue
fn from(other: f64) -> DecodedValue
Converts to this type from the input type.
source§impl From<i64> for DecodedValue
impl From<i64> for DecodedValue
source§fn from(other: i64) -> DecodedValue
fn from(other: i64) -> DecodedValue
Converts to this type from the input type.
source§impl PartialEq for DecodedValue
impl PartialEq for DecodedValue
source§fn eq(&self, other: &DecodedValue) -> bool
fn eq(&self, other: &DecodedValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DecodedValue
impl Serialize for DecodedValue
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
impl Eq for DecodedValue
Auto Trait Implementations§
impl Freeze for DecodedValue
impl RefUnwindSafe for DecodedValue
impl Send for DecodedValue
impl Sync for DecodedValue
impl Unpin for DecodedValue
impl UnwindSafe for DecodedValue
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)