pub struct _ShieldKeyword { /* private fields */ }Trait Implementations§
Source§impl Clone for _ShieldKeyword
impl Clone for _ShieldKeyword
Source§fn clone(&self) -> _ShieldKeyword
fn clone(&self) -> _ShieldKeyword
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 _ShieldKeyword
impl Debug for _ShieldKeyword
impl Eq for _ShieldKeyword
Source§impl From<_ShieldKeyword> for DebugKeyword
impl From<_ShieldKeyword> for DebugKeyword
Source§fn from(value: _ShieldKeyword) -> Self
fn from(value: _ShieldKeyword) -> Self
Converts to this type from the input type.
Source§impl Parse for _ShieldKeyword
impl Parse for _ShieldKeyword
fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
Source§impl PartialEq for _ShieldKeyword
impl PartialEq for _ShieldKeyword
Source§impl PrettyTree for _ShieldKeyword
impl PrettyTree for _ShieldKeyword
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 _ShieldKeywordwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for _ShieldKeywordwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
impl StructuralPartialEq for _ShieldKeyword
Source§impl ToTokens for _ShieldKeyword
impl ToTokens for _ShieldKeyword
Source§impl Token for _ShieldKeyword
impl Token for _ShieldKeyword
Source§const SPELLING: &'static str = "shield"
const SPELLING: &'static str = "shield"
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 _ShieldKeyword
impl RefUnwindSafe for _ShieldKeyword
impl Send for _ShieldKeyword
impl Sync for _ShieldKeyword
impl Unpin for _ShieldKeyword
impl UnsafeUnpin for _ShieldKeyword
impl UnwindSafe for _ShieldKeyword
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