Enum ra_ap_syntax::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.
Performs the conversion.
impl<L> From<NodeOrToken<SyntaxNode, SyntaxToken>> for NodeOrToken<SyntaxNode<L>, SyntaxToken<L>> where
L: Language,
[src]
impl<L> From<NodeOrToken<SyntaxNode, SyntaxToken>> for NodeOrToken<SyntaxNode<L>, SyntaxToken<L>> where
L: Language,
[src]pub fn from(
raw: NodeOrToken<SyntaxNode, SyntaxToken>
) -> NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>
[src]
pub fn from(
raw: NodeOrToken<SyntaxNode, SyntaxToken>
) -> NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>
[src]Performs the conversion.
impl<L> From<NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>> for NodeOrToken<SyntaxNode, SyntaxToken> where
L: Language,
[src]
impl<L> From<NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>> for NodeOrToken<SyntaxNode, SyntaxToken> where
L: Language,
[src]pub fn from(
element: NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>
) -> NodeOrToken<SyntaxNode, SyntaxToken>
[src]
pub fn from(
element: NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>
) -> NodeOrToken<SyntaxNode, SyntaxToken>
[src]Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<L> From<SyntaxToken<L>> for NodeOrToken<SyntaxNode<L>, SyntaxToken<L>> where
L: Language,
[src]
impl<L> From<SyntaxToken<L>> for NodeOrToken<SyntaxNode<L>, SyntaxToken<L>> where
L: Language,
[src]Performs the conversion.
Performs the conversion.
impl<N, T> PartialEq<NodeOrToken<N, T>> for NodeOrToken<N, T> where
T: PartialEq<T>,
N: PartialEq<N>,
[src]
impl<N, T> PartialEq<NodeOrToken<N, T>> for NodeOrToken<N, T> where
T: PartialEq<T>,
N: PartialEq<N>,
[src]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
T: PartialOrd<T>,
N: PartialOrd<N>,
[src]
impl<N, T> PartialOrd<NodeOrToken<N, T>> for NodeOrToken<N, T> where
T: PartialOrd<T>,
N: PartialOrd<N>,
[src]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
Compare self to key
and return true
if they are equal.