pub struct _WhenKeyword { /* private fields */ }Trait Implementations§
Source§impl Clone for _WhenKeyword
impl Clone for _WhenKeyword
Source§fn clone(&self) -> _WhenKeyword
fn clone(&self) -> _WhenKeyword
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for _WhenKeyword
impl Debug for _WhenKeyword
impl Eq for _WhenKeyword
Source§impl Parse for _WhenKeyword
impl Parse for _WhenKeyword
fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
Source§impl PartialEq for _WhenKeyword
impl PartialEq for _WhenKeyword
Source§impl PrettyTree for _WhenKeyword
impl PrettyTree for _WhenKeyword
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl<N> Reconstruct<N> for _WhenKeywordwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for _WhenKeywordwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
impl StructuralPartialEq for _WhenKeyword
Source§impl ToTokens for _WhenKeyword
impl ToTokens for _WhenKeyword
Source§impl Token for _WhenKeyword
impl Token for _WhenKeyword
Source§const SPELLING: &'static str = "when"
const SPELLING: &'static str = "when"
Canonical spelling used in diagnostics and freshly constructed atoms.
Source§fn matches_token_tree(token: &TokenTree) -> bool
fn matches_token_tree(token: &TokenTree) -> bool
Tests whether a raw atom belongs to this closed token type.
Source§fn from_token_tree(token: TokenTree) -> Option<Self>
fn from_token_tree(token: TokenTree) -> Option<Self>
Validates and retains a raw atom as this typed token.
Auto Trait Implementations§
impl Freeze for _WhenKeyword
impl RefUnwindSafe for _WhenKeyword
impl Send for _WhenKeyword
impl Sync for _WhenKeyword
impl Unpin for _WhenKeyword
impl UnsafeUnpin for _WhenKeyword
impl UnwindSafe for _WhenKeyword
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more