Enum taplo::value::Value[][src]

pub enum Value {
    Bool(bool),
    UnsizedInteger(u64),
    Integer(i64),
    Float(f64),
    Date(Date),
    String(String),
    Array(Vec<Value>),
    Map(Map),
}

Contains all possible value types in a TOML document.

Variants

Bool(bool)
UnsizedInteger(u64)
Integer(i64)
Float(f64)
Date(Date)
String(String)
Array(Vec<Value>)
Map(Map)

Implementations

impl Value[src]

pub fn as_bool(&self) -> Option<&bool>[src]

pub fn into_bool(self) -> Option<bool>[src]

pub fn as_u64(&self) -> Option<&u64>[src]

pub fn into_u64(self) -> Option<u64>[src]

pub fn as_i64(&self) -> Option<&i64>[src]

pub fn into_i64(self) -> Option<i64>[src]

pub fn as_f64(&self) -> Option<&f64>[src]

pub fn into_f64(self) -> Option<f64>[src]

pub fn as_date(&self) -> Option<&Date>[src]

pub fn into_date(self) -> Option<Date>[src]

pub fn as_str(&self) -> Option<&str>[src]

pub fn into_string(self) -> Option<String>[src]

pub fn as_array(&self) -> Option<&Vec<Value>>[src]

pub fn into_array(self) -> Option<Vec<Value>>[src]

pub fn as_map(&self) -> Option<&Map>[src]

pub fn into_map(self) -> Option<Map>[src]

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

impl<'de> Deserialize<'de> for Value[src]

impl PartialEq<Value> for Value[src]

impl Serialize for Value[src]

impl StructuralPartialEq for Value[src]

impl TryFrom<ArrayNode> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<BoolNode> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<DateNode> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<FloatNode> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<IntegerNode> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Node> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<RootNode> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<StringNode> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<TableNode> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ValueNode> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.