pub struct ResolvedNode<S: Syntax, D: 'static = ()> { /* private fields */ }Expand description
Implementations§
Source§impl<S: Syntax, D> ResolvedNode<S, D>
impl<S: Syntax, D> ResolvedNode<S, D>
Sourcepub fn syntax(&self) -> &SyntaxNode<S, D>
pub fn syntax(&self) -> &SyntaxNode<S, D>
Returns this node as a SyntaxNode.
Source§impl<S: Syntax, D> ResolvedNode<S, D>
impl<S: Syntax, D> ResolvedNode<S, D>
Sourcepub fn text(&self) -> SyntaxText<'_, '_, dyn Resolver<TokenKey>, S, D>
pub fn text(&self) -> SyntaxText<'_, '_, dyn Resolver<TokenKey>, S, D>
Uses the resolver associated with this tree to return an efficient representation of all source text covered by this node, i.e. the combined text of all token leafs of the subtree originating in this node.
Source§impl<S, D> ResolvedNode<S, D>where
S: Syntax,
impl<S, D> ResolvedNode<S, D>where
S: Syntax,
Sourcepub fn as_serialize_with_data(&self) -> impl Serialize + '_where
D: Serialize,
Available on crate feature serialize only.
pub fn as_serialize_with_data(&self) -> impl Serialize + '_where
D: Serialize,
serialize only.Return an anonymous object that can be used to serialize this node, including the data for each node.
Source§impl<S: Syntax, D> ResolvedNode<S, D>
impl<S: Syntax, D> ResolvedNode<S, D>
Sourcepub fn resolver(&self) -> &StdArc<dyn Resolver<TokenKey>>
pub fn resolver(&self) -> &StdArc<dyn Resolver<TokenKey>>
Returns the Resolver associated with this tree.
Sourcepub fn new_root_with_resolver(
green: GreenNode,
resolver: impl Resolver<TokenKey> + 'static,
) -> Self
pub fn new_root_with_resolver( green: GreenNode, resolver: impl Resolver<TokenKey> + 'static, ) -> Self
Sourcepub fn try_resolved(&self) -> Option<&ResolvedNode<S, D>>
pub fn try_resolved(&self) -> Option<&ResolvedNode<S, D>>
Always returns Some(self).
This method mostly exists to allow the convenience of being agnostic over SyntaxNode vs ResolvedNode.
Sourcepub fn resolved(&self) -> &ResolvedNode<S, D>
pub fn resolved(&self) -> &ResolvedNode<S, D>
Always returns self.
This method mostly exists to allow the convenience of being agnostic over SyntaxNode vs ResolvedNode.
Sourcepub fn root(&self) -> &SyntaxNode<S, D>
pub fn root(&self) -> &SyntaxNode<S, D>
The root of the tree this node belongs to.
If this node is the root, returns self.
Sourcepub fn parent(&self) -> Option<&Self>
pub fn parent(&self) -> Option<&Self>
The parent node of this node, except if this node is the root.
Sourcepub fn ancestors(&self) -> impl Iterator<Item = &Self>
pub fn ancestors(&self) -> impl Iterator<Item = &Self>
Returns an iterator along the chain of parents of this node.
Sourcepub fn children(&self) -> impl Iterator<Item = &Self>
pub fn children(&self) -> impl Iterator<Item = &Self>
Returns an iterator over all nodes that are children of this node.
If you want to also consider leafs, see children_with_tokens.
Sourcepub fn children_with_tokens(
&self,
) -> impl Iterator<Item = ResolvedElementRef<'_, S, D>>
pub fn children_with_tokens( &self, ) -> impl Iterator<Item = ResolvedElementRef<'_, S, D>>
Returns an iterator over child elements of this node, including tokens.
Sourcepub fn first_child(&self) -> Option<&ResolvedNode<S, D>>
pub fn first_child(&self) -> Option<&ResolvedNode<S, D>>
The first child node of this node, if any.
If you want to also consider leafs, see first_child_or_token.
Sourcepub fn first_child_or_token(&self) -> Option<ResolvedElementRef<'_, S, D>>
pub fn first_child_or_token(&self) -> Option<ResolvedElementRef<'_, S, D>>
The first child element of this node, if any, including tokens.
Sourcepub fn last_child(&self) -> Option<&ResolvedNode<S, D>>
pub fn last_child(&self) -> Option<&ResolvedNode<S, D>>
The last child node of this node, if any.
If you want to also consider leafs, see last_child_or_token.
Sourcepub fn last_child_or_token(&self) -> Option<ResolvedElementRef<'_, S, D>>
pub fn last_child_or_token(&self) -> Option<ResolvedElementRef<'_, S, D>>
The last child element of this node, if any, including tokens.
Sourcepub fn next_child_after(
&self,
n: usize,
offset: TextSize,
) -> Option<&ResolvedNode<S, D>>
pub fn next_child_after( &self, n: usize, offset: TextSize, ) -> Option<&ResolvedNode<S, D>>
The first child node of this node starting at the (n + 1)-st, if any.
Note that even if this method returns Some, the contained node may not actually be the (n +
1)-st child, but the next child from there that is a node.
If you want to also consider leafs, see next_child_or_token_after.
Sourcepub fn next_child_or_token_after(
&self,
n: usize,
offset: TextSize,
) -> Option<ResolvedElementRef<'_, S, D>>
pub fn next_child_or_token_after( &self, n: usize, offset: TextSize, ) -> Option<ResolvedElementRef<'_, S, D>>
The first child element of this node starting at the (n + 1)-st, if any.
If this method returns Some, the contained node is the (n + 1)-st child of this node.
Sourcepub fn prev_child_before(
&self,
n: usize,
offset: TextSize,
) -> Option<&ResolvedNode<S, D>>
pub fn prev_child_before( &self, n: usize, offset: TextSize, ) -> Option<&ResolvedNode<S, D>>
The last child node of this node up to the nth, if any.
Note that even if this method returns Some, the contained node may not actually be the (n -
1)-st child, but the previous child from there that is a node.
If you want to also consider leafs, see
prev_child_or_token_before.
Sourcepub fn prev_child_or_token_before(
&self,
n: usize,
offset: TextSize,
) -> Option<ResolvedElementRef<'_, S, D>>
pub fn prev_child_or_token_before( &self, n: usize, offset: TextSize, ) -> Option<ResolvedElementRef<'_, S, D>>
The last child node of this node up to the nth, if any.
If this method returns Some, the contained node is the (n - 1)-st child.
Sourcepub fn next_sibling(&self) -> Option<&ResolvedNode<S, D>>
pub fn next_sibling(&self) -> Option<&ResolvedNode<S, D>>
The node to the right of this one, i.e. the next child node (!) of this node’s parent after this node.
If you want to also consider leafs, see next_sibling_or_token.
Sourcepub fn next_sibling_or_token(&self) -> Option<ResolvedElementRef<'_, S, D>>
pub fn next_sibling_or_token(&self) -> Option<ResolvedElementRef<'_, S, D>>
The tree element to the right of this one, i.e. the next child of this node’s parent after this node.
Sourcepub fn prev_sibling(&self) -> Option<&ResolvedNode<S, D>>
pub fn prev_sibling(&self) -> Option<&ResolvedNode<S, D>>
The node to the left of this one, i.e. the previous child node (!) of this node’s parent before this node.
If you want to also consider leafs, see prev_sibling_or_token.
Sourcepub fn prev_sibling_or_token(&self) -> Option<ResolvedElementRef<'_, S, D>>
pub fn prev_sibling_or_token(&self) -> Option<ResolvedElementRef<'_, S, D>>
The tree element to the left of this one, i.e. the previous child of this node’s parent before this node.
Sourcepub fn first_token(&self) -> Option<&ResolvedToken<S, D>>
pub fn first_token(&self) -> Option<&ResolvedToken<S, D>>
Return the leftmost token in the subtree of this node
Sourcepub fn last_token(&self) -> Option<&ResolvedToken<S, D>>
pub fn last_token(&self) -> Option<&ResolvedToken<S, D>>
Return the rightmost token in the subtree of this node
Sourcepub fn siblings(
&self,
direction: Direction,
) -> impl Iterator<Item = &ResolvedNode<S, D>>
pub fn siblings( &self, direction: Direction, ) -> impl Iterator<Item = &ResolvedNode<S, D>>
Returns an iterator over all sibling nodes of this node in the given direction, i.e. all of
this node’s parent’s child nodes (!) from this node on to the left or the right. The first
item in the iterator will always be this node.
If you want to also consider leafs, see siblings_with_tokens.
Sourcepub fn siblings_with_tokens(
&self,
direction: Direction,
) -> impl Iterator<Item = ResolvedElementRef<'_, S, D>>
pub fn siblings_with_tokens( &self, direction: Direction, ) -> impl Iterator<Item = ResolvedElementRef<'_, S, D>>
Returns an iterator over all siblings of this node in the given direction, i.e. all of this
node’s parent’s children from this node on to the left or the right.
The first item in the iterator will always be this node.
Sourcepub fn descendants(&self) -> impl Iterator<Item = &ResolvedNode<S, D>>
pub fn descendants(&self) -> impl Iterator<Item = &ResolvedNode<S, D>>
Returns an iterator over all nodes (!) in the subtree starting at this node, including this node.
If you want to also consider leafs, see descendants_with_tokens.
Sourcepub fn descendants_with_tokens(
&self,
) -> impl Iterator<Item = ResolvedElementRef<'_, S, D>>
pub fn descendants_with_tokens( &self, ) -> impl Iterator<Item = ResolvedElementRef<'_, S, D>>
Returns an iterator over all elements in the subtree starting at this node, including this node.
Sourcepub fn preorder(&self) -> impl Iterator<Item = WalkEvent<&ResolvedNode<S, D>>>
pub fn preorder(&self) -> impl Iterator<Item = WalkEvent<&ResolvedNode<S, D>>>
Traverse the subtree rooted at the current node (including the current node) in preorder, excluding tokens.
Sourcepub fn preorder_with_tokens(
&self,
) -> impl Iterator<Item = WalkEvent<ResolvedElementRef<'_, S, D>>>
pub fn preorder_with_tokens( &self, ) -> impl Iterator<Item = WalkEvent<ResolvedElementRef<'_, S, D>>>
Traverse the subtree rooted at the current node (including the current node) in preorder, including tokens.
Sourcepub fn token_at_offset(
&self,
offset: TextSize,
) -> TokenAtOffset<ResolvedToken<S, D>> ⓘ
pub fn token_at_offset( &self, offset: TextSize, ) -> TokenAtOffset<ResolvedToken<S, D>> ⓘ
Find a token in the subtree corresponding to this node, which covers the offset. Precondition: offset must be withing node’s range.
Sourcepub fn covering_element(&self, range: TextRange) -> ResolvedElementRef<'_, S, D>
pub fn covering_element(&self, range: TextRange) -> ResolvedElementRef<'_, S, D>
Return the deepest node or token in the current subtree that fully contains the range. If the range is empty and is contained in two leaf nodes, either one can be returned. Precondition: range must be contained withing the current node
Methods from Deref<Target = SyntaxNode<S, D>>§
Sourcepub fn write_debug<R>(
&self,
resolver: &R,
target: &mut impl Write,
recursive: bool,
) -> Result
pub fn write_debug<R>( &self, resolver: &R, target: &mut impl Write, recursive: bool, ) -> Result
Writes this node’s Debug representation into the given target.
If recursive is true, prints the entire subtree rooted in this node.
Otherwise, only this node’s kind and range are written.
Sourcepub fn debug<R>(&self, resolver: &R, recursive: bool) -> String
pub fn debug<R>(&self, resolver: &R, recursive: bool) -> String
Returns this node’s Debug representation as a string.
If recursive is true, prints the entire subtree rooted in this node.
Otherwise, only this node’s kind and range are written.
To avoid allocating for every node, see write_debug.
Sourcepub fn write_display<R>(&self, resolver: &R, target: &mut impl Write) -> Result
pub fn write_display<R>(&self, resolver: &R, target: &mut impl Write) -> Result
Writes this node’s Display representation into the given target.
Sourcepub fn display<R>(&self, resolver: &R) -> String
pub fn display<R>(&self, resolver: &R) -> String
Returns this node’s Display representation as a string.
To avoid allocating for every node, see write_display.
Sourcepub fn resolver(&self) -> Option<&StdArc<dyn Resolver<TokenKey>>>
pub fn resolver(&self) -> Option<&StdArc<dyn Resolver<TokenKey>>>
If there is a resolver associated with this tree, returns it.
Sourcepub fn try_resolved(&self) -> Option<&ResolvedNode<S, D>>
pub fn try_resolved(&self) -> Option<&ResolvedNode<S, D>>
Turns this node into a ResolvedNode, but only if there is a resolver associated with
this tree.
Sourcepub fn resolved(&self) -> &ResolvedNode<S, D>
pub fn resolved(&self) -> &ResolvedNode<S, D>
Sourcepub fn root(&self) -> &SyntaxNode<S, D>
pub fn root(&self) -> &SyntaxNode<S, D>
The root of the tree this node belongs to.
If this node is the root, returns self.
Sourcepub fn set_data(&self, data: D) -> Arc<D>
pub fn set_data(&self, data: D) -> Arc<D>
Stores custom data for this node. If there was previous data associated with this node, it will be replaced.
Sourcepub fn try_set_data(&self, data: D) -> Result<Arc<D>, D>
pub fn try_set_data(&self, data: D) -> Result<Arc<D>, D>
Stores custom data for this node, but only if no data was previously set. If it was, the given data is returned unchanged.
Sourcepub fn clear_data(&self)
pub fn clear_data(&self)
Removes the data associated with this node.
Sourcepub fn replace_with(&self, replacement: GreenNode) -> GreenNode
pub fn replace_with(&self, replacement: GreenNode) -> GreenNode
Returns a green tree, equal to the green tree this node belongs two, except with this node substitute. The complexity of operation is proportional to the depth of the tree
Sourcepub fn syntax_kind(&self) -> RawSyntaxKind
pub fn syntax_kind(&self) -> RawSyntaxKind
The internal representation of the kind of this node.
Sourcepub fn text_range(&self) -> TextRange
pub fn text_range(&self) -> TextRange
The range this node covers in the source text, in bytes.
Sourcepub fn resolve_text<'n, 'i, I>(
&'n self,
resolver: &'i I,
) -> SyntaxText<'n, 'i, I, S, D>
pub fn resolve_text<'n, 'i, I>( &'n self, resolver: &'i I, ) -> SyntaxText<'n, 'i, I, S, D>
Uses the provided resolver to return an efficient representation of all source text covered by this node, i.e. the combined text of all token leafs of the subtree originating in this node.
Sourcepub fn parent(&self) -> Option<&SyntaxNode<S, D>>
pub fn parent(&self) -> Option<&SyntaxNode<S, D>>
The parent node of this node, except if this node is the root.
Sourcepub fn arity(&self) -> usize
pub fn arity(&self) -> usize
The number of child nodes (!) of this node.
If you want to also consider leafs, see arity_with_tokens.
Sourcepub fn arity_with_tokens(&self) -> usize
pub fn arity_with_tokens(&self) -> usize
The number of children of this node.
Sourcepub fn ancestors(&self) -> impl Iterator<Item = &SyntaxNode<S, D>>
pub fn ancestors(&self) -> impl Iterator<Item = &SyntaxNode<S, D>>
Returns an iterator along the chain of parents of this node.
Sourcepub fn children(&self) -> SyntaxNodeChildren<'_, S, D> ⓘ
pub fn children(&self) -> SyntaxNodeChildren<'_, S, D> ⓘ
Returns an iterator over all nodes that are children of this node.
If you want to also consider leafs, see children_with_tokens.
Sourcepub fn children_with_tokens(&self) -> SyntaxElementChildren<'_, S, D> ⓘ
pub fn children_with_tokens(&self) -> SyntaxElementChildren<'_, S, D> ⓘ
Returns an iterator over child elements of this node, including tokens.
Sourcepub fn first_child(&self) -> Option<&SyntaxNode<S, D>>
pub fn first_child(&self) -> Option<&SyntaxNode<S, D>>
The first child node of this node, if any.
If you want to also consider leafs, see first_child_or_token.
Sourcepub fn first_child_or_token(&self) -> Option<SyntaxElementRef<'_, S, D>>
pub fn first_child_or_token(&self) -> Option<SyntaxElementRef<'_, S, D>>
The first child element of this node, if any, including tokens.
Sourcepub fn last_child(&self) -> Option<&SyntaxNode<S, D>>
pub fn last_child(&self) -> Option<&SyntaxNode<S, D>>
The last child node of this node, if any.
If you want to also consider leafs, see last_child_or_token.
Sourcepub fn last_child_or_token(&self) -> Option<SyntaxElementRef<'_, S, D>>
pub fn last_child_or_token(&self) -> Option<SyntaxElementRef<'_, S, D>>
The last child element of this node, if any, including tokens.
Sourcepub fn next_child_after(
&self,
n: usize,
offset: TextSize,
) -> Option<&SyntaxNode<S, D>>
pub fn next_child_after( &self, n: usize, offset: TextSize, ) -> Option<&SyntaxNode<S, D>>
The first child node of this node starting at the (n + 1)-st, if any.
Note that even if this method returns Some, the contained node may not actually be the (n +
1)-st child, but the next child from there that is a node.
If you want to also consider leafs, see next_child_or_token_after.
Sourcepub fn next_child_or_token_after(
&self,
n: usize,
offset: TextSize,
) -> Option<SyntaxElementRef<'_, S, D>>
pub fn next_child_or_token_after( &self, n: usize, offset: TextSize, ) -> Option<SyntaxElementRef<'_, S, D>>
The first child element of this node starting at the (n + 1)-st, if any.
If this method returns Some, the contained node is the (n + 1)-st child of this node.
Sourcepub fn prev_child_before(
&self,
n: usize,
offset: TextSize,
) -> Option<&SyntaxNode<S, D>>
pub fn prev_child_before( &self, n: usize, offset: TextSize, ) -> Option<&SyntaxNode<S, D>>
The last child node of this node up to the nth, if any.
Note that even if this method returns Some, the contained node may not actually be the (n -
1)-st child, but the previous child from there that is a node.
If you want to also consider leafs, see prev_child_or_token_before.
Sourcepub fn prev_child_or_token_before(
&self,
n: usize,
offset: TextSize,
) -> Option<SyntaxElementRef<'_, S, D>>
pub fn prev_child_or_token_before( &self, n: usize, offset: TextSize, ) -> Option<SyntaxElementRef<'_, S, D>>
The last child node of this node up to the nth, if any.
If this method returns Some, the contained node is the (n - 1)-st child.
Sourcepub fn next_sibling(&self) -> Option<&SyntaxNode<S, D>>
pub fn next_sibling(&self) -> Option<&SyntaxNode<S, D>>
The node to the right of this one, i.e. the next child node (!) of this node’s parent after this node.
If you want to also consider leafs, see next_sibling_or_token.
Sourcepub fn next_sibling_or_token(&self) -> Option<SyntaxElementRef<'_, S, D>>
pub fn next_sibling_or_token(&self) -> Option<SyntaxElementRef<'_, S, D>>
The tree element to the right of this one, i.e. the next child of this node’s parent after this node.
Sourcepub fn prev_sibling(&self) -> Option<&SyntaxNode<S, D>>
pub fn prev_sibling(&self) -> Option<&SyntaxNode<S, D>>
The node to the left of this one, i.e. the previous child node (!) of this node’s parent before this node.
If you want to also consider leafs, see prev_sibling_or_token.
Sourcepub fn prev_sibling_or_token(&self) -> Option<SyntaxElementRef<'_, S, D>>
pub fn prev_sibling_or_token(&self) -> Option<SyntaxElementRef<'_, S, D>>
The tree element to the left of this one, i.e. the previous child of this node’s parent before this node.
Sourcepub fn first_token(&self) -> Option<&SyntaxToken<S, D>>
pub fn first_token(&self) -> Option<&SyntaxToken<S, D>>
Return the leftmost token in the subtree of this node
Sourcepub fn last_token(&self) -> Option<&SyntaxToken<S, D>>
pub fn last_token(&self) -> Option<&SyntaxToken<S, D>>
Return the rightmost token in the subtree of this node
Sourcepub fn siblings(
&self,
direction: Direction,
) -> impl Iterator<Item = &SyntaxNode<S, D>>
pub fn siblings( &self, direction: Direction, ) -> impl Iterator<Item = &SyntaxNode<S, D>>
Returns an iterator over all sibling nodes of this node in the given direction, i.e. all of
this node’s parent’s child nodes (!) from this node on to the left or the right. The first
item in the iterator will always be this node.
If you want to also consider leafs, see siblings_with_tokens.
Sourcepub fn siblings_with_tokens(
&self,
direction: Direction,
) -> impl Iterator<Item = SyntaxElementRef<'_, S, D>>
pub fn siblings_with_tokens( &self, direction: Direction, ) -> impl Iterator<Item = SyntaxElementRef<'_, S, D>>
Returns an iterator over all siblings of this node in the given direction, i.e. all of this
node’s parent’s children from this node on to the left or the right.
The first item in the iterator will always be this node.
Sourcepub fn descendants(&self) -> impl Iterator<Item = &SyntaxNode<S, D>>
pub fn descendants(&self) -> impl Iterator<Item = &SyntaxNode<S, D>>
Returns an iterator over all nodes (!) in the subtree starting at this node, including this node.
If you want to also consider leafs, see descendants_with_tokens.
Sourcepub fn descendants_with_tokens(
&self,
) -> impl Iterator<Item = SyntaxElementRef<'_, S, D>>
pub fn descendants_with_tokens( &self, ) -> impl Iterator<Item = SyntaxElementRef<'_, S, D>>
Returns an iterator over all elements in the subtree starting at this node, including this node.
Sourcepub fn preorder(&self) -> impl Iterator<Item = WalkEvent<&SyntaxNode<S, D>>>
pub fn preorder(&self) -> impl Iterator<Item = WalkEvent<&SyntaxNode<S, D>>>
Traverse the subtree rooted at the current node (including the current node) in preorder, excluding tokens.
Sourcepub fn preorder_with_tokens(
&self,
) -> impl Iterator<Item = WalkEvent<SyntaxElementRef<'_, S, D>>>
pub fn preorder_with_tokens( &self, ) -> impl Iterator<Item = WalkEvent<SyntaxElementRef<'_, S, D>>>
Traverse the subtree rooted at the current node (including the current node) in preorder, including tokens.
Sourcepub fn token_at_offset(
&self,
offset: TextSize,
) -> TokenAtOffset<SyntaxToken<S, D>> ⓘ
pub fn token_at_offset( &self, offset: TextSize, ) -> TokenAtOffset<SyntaxToken<S, D>> ⓘ
Find a token in the subtree corresponding to this node, which covers the offset. Precondition: offset must be withing node’s range.
Sourcepub fn covering_element(&self, range: TextRange) -> SyntaxElementRef<'_, S, D>
pub fn covering_element(&self, range: TextRange) -> SyntaxElementRef<'_, S, D>
Return the deepest node or token in the current subtree that fully contains the range. If the range is empty and is contained in two leaf nodes, either one can be returned. Precondition: range must be contained withing the current node
Sourcepub fn as_serialize_with_data_with_resolver<'node>(
&'node self,
resolver: &'node impl Resolver<TokenKey>,
) -> impl Serialize + 'nodewhere
D: Serialize,
Available on crate feature serialize only.
pub fn as_serialize_with_data_with_resolver<'node>(
&'node self,
resolver: &'node impl Resolver<TokenKey>,
) -> impl Serialize + 'nodewhere
D: Serialize,
serialize only.Return an anonymous object that can be used to serialize this node, including the data and by using an external resolver.
Sourcepub fn as_serialize_with_resolver<'node>(
&'node self,
resolver: &'node impl Resolver<TokenKey>,
) -> impl Serialize + 'node
Available on crate feature serialize only.
pub fn as_serialize_with_resolver<'node>( &'node self, resolver: &'node impl Resolver<TokenKey>, ) -> impl Serialize + 'node
serialize only.Return an anonymous object that can be used to serialize this node, which uses the given resolver instead of the resolver inside the tree.
Trait Implementations§
Source§impl<S: Syntax, D> Clone for ResolvedNode<S, D>
impl<S: Syntax, D> Clone for ResolvedNode<S, D>
Source§impl<S: Syntax, D> Debug for ResolvedNode<S, D>
impl<S: Syntax, D> Debug for ResolvedNode<S, D>
Source§impl<S: Syntax, D> Deref for ResolvedNode<S, D>
impl<S: Syntax, D> Deref for ResolvedNode<S, D>
Source§impl<S: Syntax, D> DerefMut for ResolvedNode<S, D>
impl<S: Syntax, D> DerefMut for ResolvedNode<S, D>
Source§impl<'de, S, D> Deserialize<'de> for ResolvedNode<S, D>where
S: Syntax,
D: Deserialize<'de>,
Available on crate feature serialize only.
impl<'de, S, D> Deserialize<'de> for ResolvedNode<S, D>where
S: Syntax,
D: Deserialize<'de>,
serialize only.Source§fn deserialize<De>(deserializer: De) -> Result<Self, De::Error>where
De: Deserializer<'de>,
fn deserialize<De>(deserializer: De) -> Result<Self, De::Error>where
De: Deserializer<'de>,
Source§impl<S: Syntax, D> Display for ResolvedNode<S, D>
impl<S: Syntax, D> Display for ResolvedNode<S, D>
Source§impl<'a, S: Syntax, D> From<&'a ResolvedNode<S, D>> for ResolvedElementRef<'a, S, D>
impl<'a, S: Syntax, D> From<&'a ResolvedNode<S, D>> for ResolvedElementRef<'a, S, D>
Source§fn from(node: &'a ResolvedNode<S, D>) -> Self
fn from(node: &'a ResolvedNode<S, D>) -> Self
Source§impl<S: Syntax, D> From<ResolvedNode<S, D>> for ResolvedElement<S, D>
impl<S: Syntax, D> From<ResolvedNode<S, D>> for ResolvedElement<S, D>
Source§fn from(node: ResolvedNode<S, D>) -> ResolvedElement<S, D>
fn from(node: ResolvedNode<S, D>) -> ResolvedElement<S, D>
Source§impl<S: Syntax, D> Hash for ResolvedNode<S, D>
impl<S: Syntax, D> Hash for ResolvedNode<S, D>
Source§impl<S: Syntax, D> PartialEq for ResolvedNode<S, D>
impl<S: Syntax, D> PartialEq for ResolvedNode<S, D>
Source§impl<S, D> Serialize for ResolvedNode<S, D>
Available on crate feature serialize only.
impl<S, D> Serialize for ResolvedNode<S, D>
serialize only.