pub struct _Shield { /* private fields */ }Expand description
The typed Token![shield] atom.
Trait Implementations§
impl Eq for _Shield
Source§impl From<_Shield> for DebugKeyword
impl From<_Shield> for DebugKeyword
Source§impl Lex for _Shield
impl Lex for _Shield
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl Parse for _Shield
impl Parse for _Shield
Source§fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
Consumes this value from
input. Read moreSource§impl PrettyTree for _Shield
impl PrettyTree for _Shield
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 _Shieldwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for _Shieldwhere
N: ExternalCstNode,
impl StructuralPartialEq for _Shield
Source§impl Token for _Shield
impl Token for _Shield
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 _Shield
impl RefUnwindSafe for _Shield
impl Send for _Shield
impl Sync for _Shield
impl Unpin for _Shield
impl UnsafeUnpin for _Shield
impl UnwindSafe for _Shield
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