Enum rslint_parser::NodeOrToken [−][src]
pub enum NodeOrToken<N, T> {
Node(N),
Token(T),
}
Variants
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<L> From<NodeOrToken<SyntaxNode, SyntaxToken>> for NodeOrToken<SyntaxNode<L>, SyntaxToken<L>> where
L: Language,
impl<L> From<NodeOrToken<SyntaxNode, SyntaxToken>> for NodeOrToken<SyntaxNode<L>, SyntaxToken<L>> where
L: Language,
pub fn from(
raw: NodeOrToken<SyntaxNode, SyntaxToken>
) -> NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>
pub fn from(
raw: NodeOrToken<SyntaxNode, SyntaxToken>
) -> NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>
Performs the conversion.
impl<L> From<NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>> for NodeOrToken<SyntaxNode, SyntaxToken> where
L: Language,
impl<L> From<NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>> for NodeOrToken<SyntaxNode, SyntaxToken> where
L: Language,
pub fn from(
element: NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>
) -> NodeOrToken<SyntaxNode, SyntaxToken>
pub fn from(
element: NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>
) -> NodeOrToken<SyntaxNode, SyntaxToken>
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<N, T> PartialEq<NodeOrToken<N, T>> for NodeOrToken<N, T> where
N: PartialEq<N>,
T: PartialEq<T>,
impl<N, T> PartialEq<NodeOrToken<N, T>> for NodeOrToken<N, T> where
N: PartialEq<N>,
T: PartialEq<T>,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<N, T> PartialOrd<NodeOrToken<N, T>> for NodeOrToken<N, T> where
N: PartialOrd<N>,
T: PartialOrd<T>,
impl<N, T> PartialOrd<NodeOrToken<N, T>> for NodeOrToken<N, T> where
N: PartialOrd<N>,
T: PartialOrd<T>,
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<N, T> RefUnwindSafe for NodeOrToken<N, T> where
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<N, T> Send for NodeOrToken<N, T> where
N: Send,
T: Send,
impl<N, T> Sync for NodeOrToken<N, T> where
N: Sync,
T: Sync,
impl<N, T> Unpin for NodeOrToken<N, T> where
N: Unpin,
T: Unpin,
impl<N, T> UnwindSafe for NodeOrToken<N, T> where
N: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Whether this implementor has acknowledged the 1.1.0 update to
unerase
’s documented implementation requirements. Read more