[−][src]Struct taplo::dom::RootNode
The root of the DOM.
Constructing it will normalize all the dotted keys, and merge all the tables that need to be merged, and also creates arrays from array of tables. And also semantically validates the tree according to the TOML specification.
If any errors occur, the tree might be missing entries, or will be completely empty.
Syntax errors are not reported, those have to be checked before constructing the DOM.
Implementations
impl RootNode
[src]
pub fn query_position(&self, position: TextSize) -> PositionQueryResult<'_>
[src]
pub fn iter(&self) -> impl Iterator<Item = (Path, NodeRef<'_>)>
[src]
Returns an iterator over all the nodes of the DOM.
impl RootNode
[src]
pub fn text_ranges(&self) -> TextRanges
[src]
pub fn entries(&self) -> &Entries
[src]
pub fn into_entries(self) -> Entries
[src]
pub fn errors(&self) -> &[Error]
[src]
Trait Implementations
impl Cast for RootNode
[src]
fn cast(syntax: SyntaxElement) -> Option<Self>
[src]
impl Clone for RootNode
[src]
impl Debug for RootNode
[src]
impl Display for RootNode
[src]
impl Eq for RootNode
[src]
impl From<RootNode> for Node
[src]
impl Hash for RootNode
[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 RootNode
[src]
fn syntax(&self) -> SyntaxElement
[src]
impl PartialEq<RootNode> for RootNode
[src]
impl StructuralEq for RootNode
[src]
impl StructuralPartialEq for RootNode
[src]
impl TryFrom<RootNode> for Value
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RootNode
impl !Send for RootNode
impl !Sync for RootNode
impl Unpin for RootNode
impl !UnwindSafe for RootNode
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,