[−][src]Enum taplo::value::Value
Contains all possible value types in a TOML document.
Variants
Bool(bool)UnsizedInteger(u64)Integer(i64)Float(f64)String(String)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_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 PartialEq<Value> 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.
fn try_from(node: ArrayNode) -> Result<Self, Self::Error>[src]
impl TryFrom<BoolNode> for Value[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(node: BoolNode) -> Result<Self, Self::Error>[src]
impl TryFrom<DateNode> for Value[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(node: DateNode) -> Result<Self, Self::Error>[src]
impl TryFrom<FloatNode> for Value[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(node: FloatNode) -> Result<Self, Self::Error>[src]
impl TryFrom<IntegerNode> for Value[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(node: IntegerNode) -> Result<Self, Self::Error>[src]
impl TryFrom<Node> for Value[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(node: Node) -> Result<Self, Self::Error>[src]
impl TryFrom<RootNode> for Value[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(node: RootNode) -> Result<Self, Self::Error>[src]
impl TryFrom<StringNode> for Value[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(node: StringNode) -> Result<Self, Self::Error>[src]
impl TryFrom<TableNode> for Value[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(node: TableNode) -> Result<Self, Self::Error>[src]
impl TryFrom<ValueNode> for Value[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,