Enum taplo::dom::Node[][src]

pub enum Node {
    Root(RootNode),
    Table(TableNode),
    Entry(EntryNode),
    Key(KeyNode),
    Value(ValueNode),
    Array(ArrayNode),
}

Variants

Root(RootNode)
Table(TableNode)
Entry(EntryNode)
Key(KeyNode)
Value(ValueNode)
Array(ArrayNode)

Implementations

impl Node[src]

pub fn to_value(&self) -> Value[src]

Converts the node into a value.

Panics if the node contains invalid values.

Use Value::try_from for a fallible alternative.

impl Node[src]

pub fn is_root(&self) -> bool[src]

pub fn is_table(&self) -> bool[src]

pub fn is_entry(&self) -> bool[src]

pub fn is_key(&self) -> bool[src]

pub fn is_value(&self) -> bool[src]

pub fn is_array(&self) -> bool[src]

Trait Implementations

impl Cast for Node[src]

impl Clone for Node[src]

impl Debug for Node[src]

impl Eq for Node[src]

impl From<ArrayNode> for Node[src]

impl From<BoolNode> for Node[src]

impl From<DateNode> for Node[src]

impl From<EntryNode> for Node[src]

impl From<FloatNode> for Node[src]

impl From<IntegerNode> for Node[src]

impl From<KeyNode> for Node[src]

impl From<RootNode> for Node[src]

impl From<StringNode> for Node[src]

impl From<TableNode> for Node[src]

impl From<ValueNode> for Node[src]

impl Hash for Node[src]

impl NodeSyntax for Node[src]

impl PartialEq<Node> for Node[src]

impl StructuralEq for Node[src]

impl StructuralPartialEq for Node[src]

impl TryFrom<Node> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl !RefUnwindSafe for Node

impl !Send for Node

impl !Sync for Node

impl Unpin for Node

impl !UnwindSafe for Node

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> DynClone for T where
    T: Clone
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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.