pub enum DecodedValue {
Scalar(DecodedScalar),
Table(HashMap<String, DecodedValue>),
Array(Vec<DecodedValue>),
}
Expand description
Logical representation of any TOML value
Variants§
Implementations§
Source§impl DecodedValue
impl DecodedValue
pub fn from_slice(v: &[u8]) -> Result<DecodedValue, Error>
pub fn to_string_pretty(&self) -> Result<String, Error>
Sourcepub fn from_stdin() -> Result<DecodedValue, Error>
pub fn from_stdin() -> Result<DecodedValue, Error>
See Command
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 PartialEq for DecodedValue
impl PartialEq for DecodedValue
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
impl StructuralPartialEq 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