[−][src]Enum taplo::dom::Node
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]
fn cast(element: SyntaxElement) -> Option<Self>
[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]
fn from(n: IntegerNode) -> Self
[src]
impl From<KeyNode> for Node
[src]
impl From<RootNode> for Node
[src]
impl From<StringNode> for Node
[src]
fn from(n: StringNode) -> Self
[src]
impl From<TableNode> for Node
[src]
impl From<ValueNode> for Node
[src]
impl Hash for Node
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl NodeSyntax for Node
[src]
fn syntax(&self) -> SyntaxElement
[src]
impl PartialEq<Node> for Node
[src]
impl StructuralEq for Node
[src]
impl StructuralPartialEq for Node
[src]
impl TryFrom<Node> for Value
[src]
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]
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[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>,